Skip to content

Commit

Permalink
update unauthorized error status code
Browse files Browse the repository at this point in the history
  • Loading branch information
tomimelo authored May 5, 2024
1 parent be6b169 commit 0ec2fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class UnauthorizedError<DATA = unknown> extends MadError {
this.name = 'UnauthorizedError'
this.code('UNAUTHORIZED')
this.data(data)
this.status(401)
this.status(403)
}
}

Expand Down

0 comments on commit 0ec2fe5

Please sign in to comment.