Vai al contenuto

Errori

Gli errori sono in formato RFC 7807 (Content-Type: application/problem+json):

{
  "type": "https://docs.cooabit.com/errors/url_unreachable",
  "title": "URL non raggiungibile",
  "status": 400,
  "detail": "Il server ha risposto 403",
  "instance": "/api/prod/v1/upload-documents/",
  "message": "Il server ha risposto 403",
  "message_status": "error"
}
  • type e' l'URL di questa documentazione: l'ultimo segmento e' il codice dell'errore, stabile nel tempo.
  • title e detail sono per le persone e possono cambiare; non fate confronti su di essi.
  • message e message_status ci sono per compatibilita' con i client scritti per la versione precedente dell'API.
  • Alcuni errori aggiungono campi: retry_after, upstream_status, document_id, errors.
Codice HTTP Titolo
unauthorized 401 Autenticazione richiesta
forbidden 403 Operazione non permessa
not_found 404 Risorsa non trovata
conflict 409 Conflitto
validation_error 422 Richiesta non valida
bad_request 400 Richiesta non valida
unsafe_url 400 URL non ammesso
url_unreachable 400 URL non raggiungibile
file_too_large 413 File troppo grande
unsupported_file 415 Tipo di file non ammesso
too_many_requests 429 Troppe richieste
pipeline_unavailable 503 Servizio non disponibile
webhook_unreachable 400 Webhook non raggiungibile
file_gone 410 File non disponibile
http_error — Errore HTTP generico
classifier_error — Errore del classificatore
extractor_error — Errore dell'estrattore