GET/api/v1/conversion-errors
Authentication#
No key is needed. This route is public.
Responses#
200 OK#
Content type application/json. Schema: ErrorCatalog.
| Name | Type | Required | Description |
|---|---|---|---|
data | array 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"import requests
response = requests.get(
"http://localhost:3000/api/v1/conversion-errors",
timeout=30,
)
response.raise_for_status()
print(response.json())const response = await fetch("http://localhost:3000/api/v1/conversion-errors", {
method: "GET",
});
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`);
console.log(await response.json());package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "http://localhost:3000/api/v1/conversion-errors", nil)
if err != nil {
panic(err)
}
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println(res.Status, string(out))
}<?php
$ch = curl_init("http://localhost:3000/api/v1/conversion-errors");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
]);
$response = curl_exec($ch);
if ($response === false) {
throw new RuntimeException(curl_error($ch));
}
echo curl_getinfo($ch, CURLINFO_HTTP_CODE), " ", $response, PHP_EOL;import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Example {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("http://localhost:3000/api/v1/conversion-errors"))
.GET()
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}using System;
using System.Net.Http;
using var client = new HttpClient();
using var request = new HttpRequestMessage(
HttpMethod.Get, "http://localhost:3000/api/v1/conversion-errors");
using var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");require "net/http"
require "uri"
uri = URI("http://localhost:3000/api/v1/conversion-errors")
request = Net::HTTP::Get.new(uri)
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == "https") do |http|
http.request(request)
end
puts "#{response.code} #{response.body}"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.

