feat(domain):lab4 add ConflictError

This commit is contained in:
Голиков Maximillian Антон
2026-10-19 10:49:30 +03:00
parent 200615f5ba
commit 57bcb05da8
2 changed files with 9 additions and 3 deletions
+2
View File
@@ -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
}