Skip to main content
Error format Lerian BC Correios operations return errors as RFC 9457 problem details with the application/problem+json media type:
Field definitions
  • 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 of this occurrence. For 5xx responses, the detail reads internal error. Branch on code instead. The detail of BCC-2009, BCC-2010, and BCC-2011 is in Portuguese.
  • code – A stable identifier for the error. Branch on this field. The tables below list the BCC-NNNN codes and the named code BANDWIDTH_LIMIT_EXCEEDED. Two errors can share a status and still differ here. BCC-0006 and BCC-2010 both answer 409. The code tells you which one you got.
  • errors – Optional list of individual error details, each with a location, a message, and a value.
  • correlationId – The request-scoped correlation identifier.

Request errors


These errors apply to the request itself. They cover its fields, its headers, the resource it names, and the state of the service that received it.

Authentication errors


These errors apply to the token and to the permissions of the caller.

BC Correio and send errors


These errors apply to messages that you send to BACEN through BC Correio.

AI insight errors


These errors apply to a re-analysis of a mail by the AI provider that the tenant configured.