title: HTTP Status Codes

description: HTTP status codes returned by the Wontopos API and their meanings.

HTTP Status Codes

Standard HTTP status codes with Wontopos-specific context.

Success codes

CodeNameWontopos usage
200OKRequest succeeded. Response body contains the requested data.
201CreatedResource created successfully. Returned by POST endpoints.
204No ContentRequest succeeded with no response body. Returned by DELETE endpoints.

Client error codes

CodeNameWontopos usage
400Bad RequestInvalid parameters, malformed JSON, or missing required fields.
401UnauthorizedMissing, expired, or invalid API key.
403ForbiddenValid authentication but insufficient scope or permissions.
404Not FoundThe requested resource does not exist or has been deleted.
405Method Not AllowedThe HTTP method is not supported for this endpoint.
409ConflictAttempting to create a resource that already exists.
422Unprocessable EntityRequest is well-formed but fails business logic validation.
429Too Many RequestsRate limit or daily quota exceeded. Check Retry-After header.

Server error codes

CodeNameWontopos usage
500Internal Server ErrorUnexpected server error. Retry or contact support with the request_id.
502Bad GatewayUpstream API returned an invalid response.
503Service UnavailableThe API is temporarily down for maintenance. Check the status page.
504Gateway TimeoutUpstream API did not respond in time.

Error details

All 4xx and 5xx responses include a JSON error body with `code`, `message`, `status`, and `request_id`. See [Error Codes](/docs/reference/error-codes) for the full list.