Skip to content

Commit

Permalink
fixed forbidden and notFound statusCode
Browse files Browse the repository at this point in the history
  • Loading branch information
up2code3 committed Nov 22, 2024
1 parent 2456154 commit abb608c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/errors/forbidden.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const CustomError = require("./customError");
class ForbiddenError extends CustomError {
constructor(message = "User Access Forbidden") {
super(message);
this.StatusCode = StatusCodes.FORBIDDEN;
this.statusCode = StatusCodes.FORBIDDEN;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/errors/notFound.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const CustomError = require("./customError");
class NotFoundError extends CustomError {
constructor(message) {
super(message);
this.StatusCode = StatusCodes.NOT_FOUND;
this.statusCode = StatusCodes.NOT_FOUND;
}
}

Expand Down

0 comments on commit abb608c

Please sign in to comment.