Skip to content

Commit

Permalink
feat(server): add some generic errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaaz committed Nov 10, 2023
1 parent bd65eb1 commit 69082b7
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions packages/server/src/ErrorStatusEnum.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
export const ErrorStatusEnum = {
GENERIC_ERROR: {
code: 1,
GENERIC: {
code: 0,
message: "Generic error",
},
UNKNOWN: {
code: 1,
message: "Unknown error",
},
DB: {
code: 2,
message: "Issue with DB",
},
EXTERNAL_API: {
code: 3,
message: "Issue when calling an external (non owlebot) API",
},
INTERNAL: {
code: 4,
message: "Issue in current API",
},
INTERNAL_CALL: {
code: 5,
message: "Issue when calling an other owlebot API",
},

TWITCH_ERROR: {
code: 1000,
Expand Down

0 comments on commit 69082b7

Please sign in to comment.