Skip to main content
GET
Ws Prices Upgrade Hint

Response

Resource not found (market / order / token).

Structured error response for all API v1 endpoints.

  • error carries the human-readable message in the default body and the machine code in the verbose body. The machine code is ALWAYS exposed via the X-Polysim-Code response header so SDK consumers can switch on a stable identifier without parsing the body.
  • request_id → exposed as the X-Request-Id response header on every response (success and error).

All non-required fields are Optional so generated SDK code can deserialize either shape (PM-default or polysim-verbose) without choking on missing keys. Pre-PR message was required, which broke SDK deserialization of the new PM-shape body.

error
string
required

Human-readable message (PM-shape default body) OR machine-readable error code (verbose body). The machine code is always available in the X-Polysim-Code response header.

message
string | null

Human-readable error description — populated only on verbose body (X-Polysim-Verbose: true).

details
Details · object | null

Additional context — populated only on verbose body.

request_id
string | null

Request id for support reference. Always exposed via X-Request-Id response header; only inlined in the verbose body.