Files
mtusi2026lab2/internal/controller/http/fiber/error_codes.go
T
Vladislav Agapov b90581f613
Application / verify (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
Implement lab 2 with PostgreSQL, Valkey admission and Helm deployment
2026-10-15 17:09:26 +03:00

23 lines
934 B
Go

package fiber
const (
// codeInvalid identifies malformed or invalid request input.
codeInvalid = "invalid_request"
// codeUnauthorized identifies an unresolved user identity.
codeUnauthorized = "unauthorized"
// codeNotFound deliberately covers both absent and inaccessible resources.
codeNotFound = "not_found"
// codeConflict identifies a violated uniqueness constraint.
codeConflict = "conflict"
// codeUnavailable identifies temporary admission or persistent capacity exhaustion.
codeUnavailable = "unavailable"
// codeRateLimited identifies exhaustion of the request token bucket.
codeRateLimited = "rate_limited"
// codeTooLarge identifies a request exceeding the transport byte budget.
codeTooLarge = "payload_too_large"
// codeMedia identifies an unsupported request media type.
codeMedia = "unsupported_media_type"
// codeInternal identifies a hidden unexpected failure.
codeInternal = "internal_error"
)