lab5 done

This commit is contained in:
Khakimov Dmitrij
2026-11-10 22:13:40 +03:00
parent b2bd7501d3
commit cbe9d8748c
63 changed files with 8907 additions and 307 deletions
+3
View File
@@ -35,6 +35,9 @@ func (h *Chat) useCaseError(c echo.Context, err error) error {
switch applicationError.Code {
case "unsupported_media_type":
status = http.StatusUnsupportedMediaType
case "rate_limited":
status = http.StatusTooManyRequests
c.Response().Header().Set("Retry-After", "2")
case "payload_too_large":
status = http.StatusRequestEntityTooLarge
case domain.ErrorUnavailable: