Expand description
The error every call can answer with, its categories, and the exit status each maps to.
Structs§
- Error
- The error every SDK call can answer with.
Enums§
- Error
Code - Machine-readable error categories, shared with the other HEY SDKs.
Constants§
- EXIT_
AMBIGUOUS - A name matched more than one record.
- EXIT_
API - The server returned an error.
- EXIT_
AUTH - Not authenticated.
- EXIT_
FORBIDDEN - Access denied, usually a scope the token does not carry.
- EXIT_
NETWORK - Connection, DNS or timeout failure.
- EXIT_
NOT_ FOUND - Resource not found.
- EXIT_OK
- The call succeeded.
- EXIT_
RATE_ LIMIT - Rate limited (429).
- EXIT_
USAGE - Invalid arguments or flags.
- EXIT_
VALIDATION - The server rejected the contents of the request (422), or the request conflicts with the state the server already holds (409).
- MAX_
ERROR_ BODY_ BYTES - The most of a failure’s body an error keeps, mirroring Go’s
MaxErrorBodyBytes. A body past it is kept up to the bound and no further: an error is diagnostic, and a server answering a refusal with a megabyte of anything has said everything useful long before. - MAX_
ERROR_ MESSAGE_ BYTES - The most of a server’s own message an error’s hint carries, mirroring Go’s
MaxErrorMessageBytes. A longer one is cut and ends in....