added error status codes and with responses

This commit is contained in:
Elias Papanikitas
2024-03-04 15:32:28 +01:00
parent 0d3922d646
commit 4827f1bb9b
2 changed files with 30 additions and 12 deletions

18
apiErrorHandler.js Normal file
View 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
}
}