Skip to content

Commit

Permalink
fix: change http status for unauthorized
Browse files Browse the repository at this point in the history
  • Loading branch information
error-domain[bot] authored and Frecherenkel60 committed Jul 2, 2024
1 parent 98ae05f commit ad21000
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions goerrors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ var (
Title: "InvalidCredentials",
Message: "The credentials are invalid. Please check the credentials and try again.",
Code: "ERR-008",
HttpStatus: 404,
HttpStatus: 403,
}
InternalServerError = &CustomError{
Title: "InternalServerError",
Expand Down Expand Up @@ -90,7 +90,7 @@ var (
Title: "Unauthorized",
Message: "The request is unauthorized. Please login to your account.",
Code: "ERR-014",
HttpStatus: 208,
HttpStatus: 401,
}
SubscriptionNotFound = &CustomError{
Title: "SubscriptionNotFound",
Expand Down

0 comments on commit ad21000

Please sign in to comment.