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. These are the outcomes an integration should handle deliberately.

Success codes

CodeMeaningWhen you'll see it
200 OKSuccessSuccessful GET, PATCH, PUT, DELETE, and dedicated mutation responses
201 CreatedResource createdSuccessful POST that created a new record

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 ForbiddenAn API key was sent to an unsupported native /api/ routeUse the versioned /partners/ path instead
404 Not FoundNo record matches the request, or the path doesn't existConfirm the endpoint path, version, tenant slug, and record ID
409 ConflictA draft block or theme-setting mutation used a stale ifUpdatedAt valueRefetch the draft, reconcile changes, and retry
422 Unprocessable EntityA dedicated mutation contains an unknown block, field, setting, or guarded fieldRead the validation issues, fetch the matching schema endpoint, 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 an idempotent read once; verify a write's outcome before retrying it, and contact support with the request ID if the failure persists

Error envelope

Partner routes return JSON errors with an error and message; validation responses may also include errors, and most route-level failures include a requestId. See Errors.

On this page