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