Expand description
Error types and transformations
Structsยง
- ApiError
- The main error type.
Enumsยง
- ApiError
Kind - The possible errors this application could encounter
Constantsยง
- ERROR_
URL ๐ - A link for more info on the returned error
- RETRY_
AFTER_ ๐JITTER - How far either side of
RETRY_AFTER_PERIODa generatedRetry-Aftermay land. Seejittered_retry_after. - RETRY_
AFTER_ ๐PERIOD - The base
Retry-Afterperiod, in seconds, when no upstream supplied one.
Functionsยง
- errno_
from_ ๐validation_ errors - Get the error number from validation errors. If multiple errors are present, the first one with a valid error code is used.
- jittered_
retry_ ๐after - A
Retry-After, in seconds, for when no upstream supplied one.
Type Aliasesยง
- ApiResult
- Common
Resulttype.