forked from mtusi2026/mtusi2026lab6
23 lines
934 B
Go
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"
|
|
)
|