Skip to main content
The Midaz API returns errors as an RFC 9457 problem details object, served with the application/problem+json content type:
Field definitions
  • type: A URI that identifies the error type, built as https://errors.lerian.studio/v1/ followed by the error code.
  • title: A brief summary of the issue.
  • status: The HTTP status code of the response.
  • detail: Detailed guidance for resolving the error. The table below lists this content in the message column.
  • code: A unique, stable identifier for the error.
  • entityType: The entity the error relates to (for example, Organization). Only present when applicable.
For server-side errors (HTTP 5xx), title and detail are sanitized to generic values so internal causes never leak. Use code and type to identify the error.
Field-level error details For issues specific to individual fields, an errors array lists each field with its problem. Examples:

Midaz errors


Refer to the following table for error codes and their descriptions: