diff options
Diffstat (limited to 'errors/status.go')
-rw-r--r-- | errors/status.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/errors/status.go b/errors/status.go index 7a23ddf..c7fc2a4 100644 --- a/errors/status.go +++ b/errors/status.go @@ -40,6 +40,7 @@ func StatusCodeFromErr(err error) int { errors.Is(err, ErrInvalidUnitPrice) || errors.Is(err, ErrPasswordTooShort) || errors.Is(err, ErrPasswordTooLong) || + errors.Is(err, ErrInvalidLoginMethod) || errors.Is(err, ErrInvalidGSTPercentage) { return http.StatusBadRequest } |