lab4 done

This commit is contained in:
Khakimov Dmitrij
2026-10-28 22:41:10 +03:00
parent a7bedda183
commit dbc700fafe
75 changed files with 5611 additions and 227 deletions
+4
View File
@@ -33,6 +33,10 @@ func (h *Chat) useCaseError(c echo.Context, err error) error {
}
status := http.StatusInternalServerError
switch applicationError.Code {
case "unsupported_media_type":
status = http.StatusUnsupportedMediaType
case "payload_too_large":
status = http.StatusRequestEntityTooLarge
case domain.ErrorUnavailable:
status = http.StatusServiceUnavailable
case domain.ErrorInvalid: