Skip to main content
Borga uses conventional HTTP status codes to signal whether a request succeeded or failed. When a request fails, the response body is a JSON object with an error field containing details about what went wrong.

Error response format

Every error response has the following shape:
During development, log the full error object on every failed request. The message and param fields often reveal exactly what to fix without needing to consult the docs.

HTTP status codes

5xx errors are safe to retry. Use exponential backoff — for example, wait 1 s, then 2 s, then 4 s — to avoid amplifying load on a degraded service.

Error types