Skip to main content
Rails B2B API uses standard HTTP response codes to indicate the success or failure of an API request. In general:
  • Codes in the 2xx range indicate success.
  • Codes in the 4xx range indicate an error that failed given the information provided.
  • Codes in the 5xx range indicate a service error (e.g. liquidity or bridge issues).

Error Response Schema

All error responses return the standard envelope with status: "error", where data contains a machine-readable code and detail attributes.
Error Payload

Machine-Readable Error Codes

When writing logic to handle errors programmatically, inspect the data.code string: