Skip to content

Error handling

HTTP status codes, error response shape, and what to do when a request fails.

Wazapin uses standard HTTP status codes. Each error response includes a detail field you can show to users or log for support.

Common status codes

Invalid payload or query params.
Missing or invalid token.
Token does not have the required permission.
The requested resource does not exist.
The request conflicts with the current resource state.
Validation failed. Check the request payload and field values.
Rate limit exceeded. Retry with exponential backoff.
Unexpected server error. Check the response detail and contact support if it persists.

Error response schema

{
  "title": "Bad Request",
  "status": 400,
  "detail": "to is required"
}

Handling guidelines

  1. Log response body and request metadata for incident tracing.
  2. Retry only for 429 and 5xx errors with exponential backoff.
  3. Do not retry 4xx validation errors before fixing payload.
Navigation

Type to search…

↑↓ navigate↵ selectEsc close