leaky error
An error response that reveals private details such as a stack trace, a database query, a secret or internal names.
Leaked internals help attackers find and exploit weaknesses.
In more detail
Attackers use those details to plan further attacks, and they can expose personal data. Return a safe problem type and detail, keep the full cause in protected logs, and give the caller a request identifier to quote.
Related terms
- Problem Details — A standard JSON shape for HTTP error responses, defined in RFC 9457, with members such as type, title, status, detail and instance.
- stack trace — The list of function calls that were running when an error happened, printed to help a developer find where it came from; Python calls it a traceback.
- correlation ID — A unique value attached to one request and passed along everywhere it goes, so its logs and traces can be found together.
Taught in
- Error Handling And Safe Retries — Modern API Architecture: REST, GraphQL & gRPC
- Problem Details: RFC 9457 — Modern API Architecture: REST, GraphQL & gRPC
- Contract Testing — Modern API Architecture: REST, GraphQL & gRPC
- Security Best Practices — Modern API Architecture: REST, GraphQL & gRPC