diff options
Diffstat (limited to 'errors/status.go')
-rw-r--r-- | errors/status.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/errors/status.go b/errors/status.go index 4767aeb..1fa33d1 100644 --- a/errors/status.go +++ b/errors/status.go @@ -49,6 +49,11 @@ func StatusCodeFromErr(err error) int { return http.StatusUnauthorized } + // 403 + if errors.Is(err, ErrForbidden) { + return http.StatusForbidden + } + // 404 if errors.Is(err, ErrNotFound) || errors.Is(err, ErrBrandNotFound) { |