Skip to content

Commit

Permalink
update common file
Browse files Browse the repository at this point in the history
Signed-off-by: nyagamunene <[email protected]>
  • Loading branch information
nyagamunene committed Jan 15, 2025
1 parent 2dfcb74 commit 64e0bba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/http/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ func EncodeError(_ context.Context, err error, w http.ResponseWriter) {
switch {
case errors.Contains(err, svcerr.ErrAuthorization),
errors.Contains(err, svcerr.ErrDomainAuthorization),
errors.Contains(err, svcerr.ErrUnauthorizedPAT),
errors.Contains(err, apiutil.ErrUnsupportedTokenType):
errors.Contains(err, svcerr.ErrUnauthorizedPAT):
err = unwrap(err)
w.WriteHeader(http.StatusForbidden)

Expand Down

0 comments on commit 64e0bba

Please sign in to comment.