Fix image formats and size, add feedback
This commit is contained in:
1 parent
feaab7e4e2
commit
fef1abade8
11 files changed
+192
-12
No files matched your search
@@ -22,7 +22,8 @@ func statusFor(err error) int {
|
||||
return http.StatusUnauthorized
|
||||
case errors.Is(err, invite.ErrInvalid),
|
||||
errors.Is(err, user.ErrUnsupportedFormat),
|
||||
errors.Is(err, user.ErrExceedDimensions):
|
||||
errors.Is(err, user.ErrExceedDimensions),
|
||||
errors.Is(err, user.ErrImageTooLarge):
|
||||
return http.StatusBadRequest
|
||||
case errors.Is(err, auth.ErrCanceled):
|
||||
return http.StatusRequestTimeout
|
||||
|
||||
Reference in new issue
Block a user