Skip to main content
Errors should be predictable for API clients while keeping internal details private.

Client handling

Inspect the actual response shape and status mapping in the deployed release. Common HTTP meanings include:

Server-side rules

Return safe, actionable messages and stable error identifiers where implemented. Do not expose stack traces, SQL, secrets, filesystem paths, or provider credentials. Log diagnostic details with a request/correlation ID and redact personal/payment data.

Retry guidance

GET requests are generally safer to retry than writes. For payment, order, and webhook operations, use idempotency controls before retrying.