Variable: PROBLEMS
constPROBLEMS:object
Defined in: packages/common/src/problem.ts:44
The registry of error kinds. One row per taxonomy category (chapter 30), plus
the two HTTP-level ones the taxonomy implies (unauthenticated, unavailable).
not-found is also what an out-of-scope resource returns: the response for a
resource the caller may not see is byte-identical to one that does not exist,
because the difference is an enumeration oracle. forbidden is only for an
OPERATION the caller's role never permits, where no resource's existence is at issue.
Type Declaration
conflict
readonlyconflict:object
conflict.callerShould
readonlycallerShould:"re-read-and-retry-once"='re-read-and-retry-once'
conflict.slug
readonlyslug:"conflict"='conflict'
conflict.status
readonlystatus:409=409
conflict.title
readonlytitle:"A concurrent change conflicted with this request"='A concurrent change conflicted with this request'
forbidden
readonlyforbidden:object
forbidden.callerShould
readonlycallerShould:"stop"='stop'
forbidden.slug
readonlyslug:"forbidden"='forbidden'
forbidden.status
readonlystatus:403=403
forbidden.title
readonlytitle:"This operation is not permitted"='This operation is not permitted'
internal
readonlyinternal:object
internal.callerShould
readonlycallerShould:"retry-with-backoff"='retry-with-backoff'
internal.slug
readonlyslug:"internal"='internal'
internal.status
readonlystatus:500=500
internal.title
readonlytitle:"An internal error occurred"='An internal error occurred'
misdirectedRequest
readonlymisdirectedRequest:object
misdirectedRequest.callerShould
readonlycallerShould:"stop"='stop'
misdirectedRequest.slug
readonlyslug:"misdirected-request"='misdirected-request'
misdirectedRequest.status
readonlystatus:421=421
misdirectedRequest.title
readonlytitle:"This request was not addressed to this host"='This request was not addressed to this host'
notFound
readonlynotFound:object
notFound.callerShould
readonlycallerShould:"stop"='stop'
notFound.slug
readonlyslug:"not-found"='not-found'
notFound.status
readonlystatus:404=404
notFound.title
readonlytitle:"The resource was not found"='The resource was not found'
payloadTooLarge
readonlypayloadTooLarge:object
payloadTooLarge.callerShould
readonlycallerShould:"fix-and-retry"='fix-and-retry'
payloadTooLarge.slug
readonlyslug:"payload-too-large"='payload-too-large'
payloadTooLarge.status
readonlystatus:413=413
payloadTooLarge.title
readonlytitle:"The request body is too large"='The request body is too large'
state
readonlystate:object
state.callerShould
readonlycallerShould:"re-read-and-decide"='re-read-and-decide'
state.slug
readonlyslug:"state"='state'
state.status
readonlystatus:409=409
state.title
readonlytitle:"The resource is not in a state that allows this"='The resource is not in a state that allows this'
tooManyRequests
readonlytooManyRequests:object
tooManyRequests.callerShould
readonlycallerShould:"stop"='stop'
tooManyRequests.slug
readonlyslug:"too-many-requests"='too-many-requests'
tooManyRequests.status
readonlystatus:429=429
tooManyRequests.title
readonlytitle:"Too many requests"='Too many requests'
unauthenticated
readonlyunauthenticated:object
unauthenticated.callerShould
readonlycallerShould:"authenticate"='authenticate'
unauthenticated.slug
readonlyslug:"unauthenticated"='unauthenticated'
unauthenticated.status
readonlystatus:401=401
unauthenticated.title
readonlytitle:"Authentication is required"='Authentication is required'
unavailable
readonlyunavailable:object
unavailable.callerShould
readonlycallerShould:"retry-with-backoff"='retry-with-backoff'
unavailable.slug
readonlyslug:"unavailable"='unavailable'
unavailable.status
readonlystatus:503=503
unavailable.title
readonlytitle:"The service cannot serve this right now"='The service cannot serve this right now'
unsupportedMediaType
readonlyunsupportedMediaType:object
unsupportedMediaType.callerShould
readonlycallerShould:"fix-and-retry"='fix-and-retry'
unsupportedMediaType.slug
readonlyslug:"unsupported-media-type"='unsupported-media-type'
unsupportedMediaType.status
readonlystatus:415=415
unsupportedMediaType.title
readonlytitle:"The request body has an unsupported media type"='The request body has an unsupported media type'
upstream
readonlyupstream:object
upstream.callerShould
readonlycallerShould:"retry-with-backoff"='retry-with-backoff'
upstream.slug
readonlyslug:"upstream"='upstream'
upstream.status
readonlystatus:502=502
upstream.title
readonlytitle:"A system we depend on failed"='A system we depend on failed'
validation
readonlyvalidation:object
validation.callerShould
readonlycallerShould:"fix-and-retry"='fix-and-retry'
validation.slug
readonlyslug:"validation"='validation'
validation.status
readonlystatus:400=400
validation.title
readonlytitle:"The request is malformed"='The request is malformed'