feat(domain):lab4 add attachments, status, errors
This commit is contained in:
@@ -76,6 +76,8 @@ func StatusFromError(err error) int {
|
||||
return 415
|
||||
case errors.Is(err, domain.ErrUnavailable):
|
||||
return 503
|
||||
case errors.Is(err, domain.ErrPayloadTooLarge):
|
||||
return 413
|
||||
default:
|
||||
return 500
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user