api/processing/request: return a unique error code

This commit is contained in:
wukko
2025-06-20 19:53:01 +06:00
parent ab526c234e
commit d18b22e7ed
2 changed files with 3 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ export function createResponse(responseType, responseData) {
body: {
status: "error",
error: {
code: code || "error.api.fetch.critical",
code: code || "error.api.fetch.critical.core",
},
critical: true
}
@@ -109,7 +109,7 @@ export function createResponse(responseType, responseData) {
}
}
} catch {
return internalError()
return internalError();
}
}