Skip to main content
Error format Pix Lerian answers an error in one of two shapes. The media type on the response tells you which shape you received. A response with the application/json media type carries the code, title, and message envelope. A response with the application/problem+json media type carries an RFC 9457 problem detail. Both shapes carry the code field, so you can branch on the PIX-NNNN value. A refusal raised inside a handler uses the application/problem+json shape. A refusal raised before the handler runs uses the application/json shape. An unmatched path, a disallowed method, a timeout, a disconnect and the idempotency replay check all refuse before the handler runs.
Field definitions The application/json envelope carries three fields:
  • code – A stable, unique identifier for the error (PIX-NNNN). Useful for programmatic handling and support requests.
  • title – A short, human-readable summary of the issue.
  • message – Detailed guidance to help you resolve the error.
The application/problem+json envelope follows RFC 9457:
  • type – A URI that identifies the error in the Lerian error catalog. Built as https://errors.lerian.studio/v1/<code>.
  • title – The HTTP status text (for example, Not Found).
  • status – The HTTP status code.
  • detail – A human-readable explanation for this occurrence of the problem. Use code to branch programmatically.
  • code – The same PIX-NNNN identifier that the application/json envelope carries.
  • errors – Optional list of per-field validation details, each with a message and a location.
  • instance – Optional URI reference that identifies this specific occurrence.
The tables below list the codes by domain. The Status column shows the HTTP status for the code. The detail column shows the text that the application/problem+json shape carries. At status 500 and above that shape carries the fixed text internal error, and the tables show it on those rows. PIX-0010 and PIX-0000 are generic fall-through codes. On a refusal raised before the handler runs, either one can carry a status other than the one in the table.

Common errors


DICT, collections, and payments share these codes. They run from PIX-0000 to PIX-0061.

DICT and Pix key errors


These codes come from Pix key entries, key lookup, claims, fraud markers, funds recoveries, and key synchronization. They run from PIX-0100 to PIX-0174.

Collections and BR Code errors


These codes come from BR Codes, immediate collections, and due-date collections. They run from PIX-0200 to PIX-0267.

Payments and refund errors


These codes come from Pix transfers, refunds, and their settlement. They run from PIX-0300 to PIX-0706.