Documentation
¶
Overview ¶
Package apierror renders non-2xx API responses into error messages that are actually useful for debugging. One implementation shared by every service command tree (snapdb, langsync, ...), so the format stays identical across the CLI:
- always includes the request method + URL, so users can tell whether they're pointing at prod or a local backend;
- prefers the server's typed JSON error body when one matched;
- otherwise falls back to the raw response body (truncated), which is the only thing that surfaces 5xx errors from proxies and LBs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.