forked from mtusi2026/mtusi2026lab6
feat: add bounded observability and verified SLO incident alerts
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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"
|
||||
)
|
||||
Reference in New Issue
Block a user