Skip to content

API: Catalog

List the conversion error codes

Every code a failed conversion can carry, with the sentence to show and whether the same input is worth submitting again. Published so a client does not hardcode them.

GET/api/v1/conversion-errors

Authentication#

No key is needed. This route is public.

Responses#

200 OK#

Content type application/json. Schema: ErrorCatalog.

NameTypeRequiredDescription
dataarray of ErrorCatalogEntry-Every error code a conversion can end with

Any other status#

Content type application/problem+json. Error (RFC 9457 problem details). Schema: Problem.

The error follows RFC 9457. See Errors.

curl -X GET "http://localhost:3000/api/v1/conversion-errors"

Response examples

{
  "data": [
    {
      "message": "That file is not a format this tool can read.",
      "retry": false,
      "type": "unsupported_input"
    },
    {
      "message": "That file was rejected by the malware scanner.",
      "retry": false,
      "type": "infected"
    },
    {
      "message": "That file is past the limit for this tool.",
      "retry": false,
      "type": "input_too_large"
    },
    {
      "message": "You have used today's conversion budget.",
      "retry": false,
      "type": "quota_exceeded"
    },
    {
      "message": "The conversion was cancelled.",
      "retry": false,
      "type": "cancelled"
    },
    {
      "message": "The converter could not process that file.",
      "retry": false,
      "type": "engine_failure"
    },
    {
      "message": "The conversion took too long and was stopped.",
      "retry": true,
      "type": "timeout"
    },
    {
      "message": "The conversion needed more memory than it is allowed.",
      "retry": true,
      "type": "out_of_memory"
    },
    {
      "message": "The server is out of working space. Try again shortly.",
      "retry": true,
      "type": "disk_full"
    },
    {
      "message": "Something went wrong on our side.",
      "retry": true,
      "type": "internal"
    }
  ]
}

The examples are built from the schemas, so every value is a placeholder of its type. The tables above hold the fields that carry the real values.