api: update error codes in api core functions

This commit is contained in:
wukko
2024-08-19 21:51:45 +06:00
parent a4d57f175e
commit 1f3509db07
4 changed files with 15 additions and 18 deletions

View File

@@ -10,7 +10,7 @@ export function createResponse(responseType, responseData) {
body: {
status: "error",
error: {
code: code || "Internal Server Error",
code: code || "error.api.fetch.critical",
},
critical: true
}