Basker Docs

Status codes

HTTP status codes returned by the Basker Partners API, with the meaning each one carries

The Basker Partners API uses standard HTTP status codes. The list below covers every code you should expect to see, what it means, and what to do about it.

Success codes

CodeMeaningWhen you'll see it
200 OKSuccessMost successful GET, PATCH, PUT, DELETE responses
201 CreatedResource createdSuccessful POST that created a new record
204 No ContentSuccess, no bodySome successful operations that don't return data

Client error codes

CodeMeaningWhat to do
400 Bad RequestThe request was malformed or missing required parametersCheck the response body for which field is invalid; fix and retry
401 UnauthorizedMissing or invalid Authorization headerConfirm the API key is correct and the header is formatted as expected — see Authentication
403 ForbiddenAuthentication succeeded, but the API key isn't allowed to perform this action on this tenantConfirm the tenant slug and the API key's permissions; the most common cause is using a non-Partners-API key path
404 Not FoundNo record matches the request, or the path doesn't existConfirm the endpoint path, version, tenant slug, and record ID
409 ConflictThe request conflicts with current state (e.g. duplicate slug)Check the response body; resolve the conflict and retry
422 Unprocessable EntityRequest body is structurally valid but fails validation rulesRead the validation errors in the response body; fix and retry
429 Too Many RequestsRate limit exceeded — see Rate limitsWait for the duration in Retry-After, then retry

Server error codes

CodeMeaningWhat to do
500 Internal Server ErrorUnexpected server-side failureRetry once; if it persists, contact support with the request ID from the response
502 Bad GatewayUpstream service unavailableRetry with exponential backoff
503 Service UnavailablePlatform temporarily unavailable (deployment, maintenance)Retry after a short delay
504 Gateway TimeoutUpstream took too long to respondRetry; if persistent on a specific request, simplify the request (smaller pages, fewer fields)

Error envelope

Every non-2xx response carries a JSON body in a consistent shape. See Errors for the envelope structure and how to parse it.

On this page