API Error Response Format

Use when designing or implementing an HTTP API's error response shape, when reviewing a PR that adds a new error path, or when a client SDK needs to consume errors. Triggers: "how should we return errors", "what's the JSON error schema", "this 500 leaked a stack trace", "the error structure is inconsistent". Do not use for logging-format questions, exception handling inside the service, or for non-HTTP protocols (gRPC, message queues).

Mine-FNL Updated

File contents

Mine-FNL/skillmd-lint/tree/main/examples/api-error-response-format commit 9959b2b2b1

Frequently asked questions

npx skillmds@latest add mine-fnl/api-error-response-format