added error status codes and with responses
This commit is contained in:
18
apiErrorHandler.js
Normal file
18
apiErrorHandler.js
Normal file
@@ -0,0 +1,18 @@
|
||||
export const APIERRORCODES = {
|
||||
STATUS200:{
|
||||
STATUS: "OK",
|
||||
CODE: 200
|
||||
},
|
||||
STATUS402:{
|
||||
STATUS: "no data has been found, check if kbo numer is correct or organisation has OVO number. Organisation without OVO number are not in wegwijs",
|
||||
CODE: 402
|
||||
},
|
||||
STATUS403:{
|
||||
STATUS: "no kbo number found in OP",
|
||||
CODE: 403
|
||||
},
|
||||
STATUS500:{
|
||||
STATUS: '',
|
||||
CODE: 500
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user