# Errors

Every error comes back as an `application/problem+json` body:

```json
{
  "type": "https://docs.signapi.lumin.example/errors/resource_not_found",
  "title": "The resource does not exist.",
  "status": 404,
  "detail": "…"
}
```

- `type` is the address of the error's page on this site. Its last segment is the error code; branch on it, or on `status`.
- `title` and `detail` are written for people. Their wording may change, so don't parse them.
- Validation errors (422, [`validation_failed`](https://docs.signapi.dev/errors/validation_failed)) add `errors`, a list of messages, one for each problem found.

Every code answers with the same HTTP status as the matching SignatureAPI error. The [migration guide](https://docs.signapi.dev/migrate#error-codes) maps their error names to our codes.

## 400 Bad Request

| Code | Meaning |
|---|---|
| [`request_malformed`](https://docs.signapi.dev/errors/request_malformed) | The request body is not valid JSON or is malformed. |
| [`storage_limit_reached`](https://docs.signapi.dev/errors/storage_limit_reached) | The account has reached its storage limit. |

## 401 Unauthorized

| Code | Meaning |
|---|---|
| [`api_key_invalid`](https://docs.signapi.dev/errors/api_key_invalid) | The API key is missing, malformed, revoked or unknown. |
| [`live_mode_not_enabled`](https://docs.signapi.dev/errors/live_mode_not_enabled) | Live mode is not enabled for this account. |

## 402 Payment Required

| Code | Meaning |
|---|---|
| [`insufficient_credits`](https://docs.signapi.dev/errors/insufficient_credits) | The credit balance is too low to send this live envelope. |
| [`live_mode_paused`](https://docs.signapi.dev/errors/live_mode_paused) | Live mode is paused for this account. |

## 403 Forbidden

| Code | Meaning |
|---|---|
| [`attestation_not_enabled`](https://docs.signapi.dev/errors/attestation_not_enabled) | Attestation is not enabled for this account. |
| [`deliverable_encryption_not_enabled`](https://docs.signapi.dev/errors/deliverable_encryption_not_enabled) | Deliverable encryption is not enabled for this account. |
| [`forbidden`](https://docs.signapi.dev/errors/forbidden) | This API key is not allowed to perform this action. |
| [`mode_mismatch`](https://docs.signapi.dev/errors/mode_mismatch) | The resource belongs to the other mode. |
| [`sender_creation_not_allowed`](https://docs.signapi.dev/errors/sender_creation_not_allowed) | This account cannot create senders. |

## 404 Not Found

| Code | Meaning |
|---|---|
| [`deliverable_not_ready`](https://docs.signapi.dev/errors/deliverable_not_ready) | The deliverable has not been generated yet. |
| [`resource_not_found`](https://docs.signapi.dev/errors/resource_not_found) | The resource does not exist. |
| [`template_not_found`](https://docs.signapi.dev/errors/template_not_found) | The template does not exist. |

## 409 Conflict

| Code | Meaning |
|---|---|
| [`ceremony_not_creatable`](https://docs.signapi.dev/errors/ceremony_not_creatable) | A ceremony cannot be created for this recipient now. |
| [`document_key_duplicate`](https://docs.signapi.dev/errors/document_key_duplicate) | Two documents in the envelope share a key. |
| [`envelope_not_cancelable`](https://docs.signapi.dev/errors/envelope_not_cancelable) | Only an envelope that is in progress can be canceled. |
| [`envelope_not_completed`](https://docs.signapi.dev/errors/envelope_not_completed) | The envelope has not completed yet. |
| [`envelope_not_deletable`](https://docs.signapi.dev/errors/envelope_not_deletable) | The envelope can only be deleted once it is canceled, failed or completed. |
| [`included_document_invalid`](https://docs.signapi.dev/errors/included_document_invalid) | An included document is not part of this envelope. |
| [`recipient_not_replaceable`](https://docs.signapi.dev/errors/recipient_not_replaceable) | This recipient cannot be replaced. |
| [`recipient_not_resendable`](https://docs.signapi.dev/errors/recipient_not_resendable) | The request cannot be resent to this recipient. |
| [`resend_too_early`](https://docs.signapi.dev/errors/resend_too_early) | It is too early to resend to this recipient. |
| [`sender_already_exists`](https://docs.signapi.dev/errors/sender_already_exists) | A sender with this email address already exists. |
| [`too_many_attempts`](https://docs.signapi.dev/errors/too_many_attempts) | Too many attempts were made. |
| [`upload_already_permanent`](https://docs.signapi.dev/errors/upload_already_permanent) | The upload is already stored permanently. |
| [`upload_expired`](https://docs.signapi.dev/errors/upload_expired) | The upload has expired. |
| [`upload_key_taken`](https://docs.signapi.dev/errors/upload_key_taken) | Another stored upload already uses this key. |
| [`upload_url_conflict`](https://docs.signapi.dev/errors/upload_url_conflict) | An upload URL with this checksum already exists with different parameters. |

## 413 Content Too Large

| Code | Meaning |
|---|---|
| [`request_too_large`](https://docs.signapi.dev/errors/request_too_large) | The request body is too large. |

## 415 Unsupported Media Type

| Code | Meaning |
|---|---|
| [`media_type_unsupported`](https://docs.signapi.dev/errors/media_type_unsupported) | The media type of the request body is not supported. |

## 422 Unprocessable Content

| Code | Meaning |
|---|---|
| [`document_conversion_failed`](https://docs.signapi.dev/errors/document_conversion_failed) | The document could not be converted to PDF. |
| [`document_download_failed`](https://docs.signapi.dev/errors/document_download_failed) | The document could not be downloaded. |
| [`document_empty`](https://docs.signapi.dev/errors/document_empty) | The document is empty. |
| [`document_has_no_pages`](https://docs.signapi.dev/errors/document_has_no_pages) | The document has no pages. |
| [`document_too_many_pages`](https://docs.signapi.dev/errors/document_too_many_pages) | The document has more pages than allowed. |
| [`document_too_many_places`](https://docs.signapi.dev/errors/document_too_many_places) | The document has more places than allowed. |
| [`document_unreadable`](https://docs.signapi.dev/errors/document_unreadable) | The document could not be read. |
| [`field_config_invalid`](https://docs.signapi.dev/errors/field_config_invalid) | A field configuration is not valid. |
| [`file_download_failed`](https://docs.signapi.dev/errors/file_download_failed) | The file could not be downloaded. |
| [`file_format_invalid`](https://docs.signapi.dev/errors/file_format_invalid) | The file format is not valid. |
| [`file_unreadable`](https://docs.signapi.dev/errors/file_unreadable) | The file could not be read. |
| [`fixed_position_page_missing`](https://docs.signapi.dev/errors/fixed_position_page_missing) | A fixed position refers to a page the document does not have. |
| [`html_rejected`](https://docs.signapi.dev/errors/html_rejected) | The HTML could not be turned into a usable document. |
| [`mode_conflict`](https://docs.signapi.dev/errors/mode_conflict) | The request mixes resources from test and live mode. |
| [`place_not_found`](https://docs.signapi.dev/errors/place_not_found) | A placeholder or fixed position refers to a place that is not defined. |
| [`place_out_of_bounds`](https://docs.signapi.dev/errors/place_out_of_bounds) | A place does not fit on its page. |
| [`place_recipient_invalid`](https://docs.signapi.dev/errors/place_recipient_invalid) | A place is assigned to a recipient that cannot use it. |
| [`placeholder_duplicate`](https://docs.signapi.dev/errors/placeholder_duplicate) | A placeholder appears more than once. |
| [`placeholder_invalid`](https://docs.signapi.dev/errors/placeholder_invalid) | A placeholder is not well formed. |
| [`placeholder_position_conflict`](https://docs.signapi.dev/errors/placeholder_position_conflict) | A place has both a placeholder and a fixed position. |
| [`placeholders_mixed`](https://docs.signapi.dev/errors/placeholders_mixed) | The document mixes placeholders and fixed positions in a way that is not allowed. |
| [`places_incompatible`](https://docs.signapi.dev/errors/places_incompatible) | The places in the envelope cannot be used together. |
| [`places_invalid`](https://docs.signapi.dev/errors/places_invalid) | The places are not valid. |
| [`preset_symbol_missing`](https://docs.signapi.dev/errors/preset_symbol_missing) | An automatic signer has a signing place but no preset signature or initials. |
| [`qes_attestation_invalid`](https://docs.signapi.dev/errors/qes_attestation_invalid) | Attestation cannot be used with qualified signers. |
| [`qes_automatic_signer_invalid`](https://docs.signapi.dev/errors/qes_automatic_signer_invalid) | Automatic signers cannot be used with qualified signers. |
| [`qes_deliverable_documents_invalid`](https://docs.signapi.dev/errors/qes_deliverable_documents_invalid) | The deliverable must include every document when qualified signers are used. |
| [`qes_deliverable_encryption_invalid`](https://docs.signapi.dev/errors/qes_deliverable_encryption_invalid) | An encrypted deliverable cannot be used with qualified signers. |
| [`qes_envelope_date_place_invalid`](https://docs.signapi.dev/errors/qes_envelope_date_place_invalid) | An envelope completed date place cannot be used with qualified signers. |
| [`qes_mixed_signers`](https://docs.signapi.dev/errors/qes_mixed_signers) | Qualified signers cannot be mixed with other signers. |
| [`qes_not_enabled`](https://docs.signapi.dev/errors/qes_not_enabled) | Qualified signatures are not enabled for this account. |
| [`qes_places_invalid`](https://docs.signapi.dev/errors/qes_places_invalid) | The places are not valid for qualified signers. |
| [`qes_recipient_places_invalid`](https://docs.signapi.dev/errors/qes_recipient_places_invalid) | A qualified signer's places are not valid. |
| [`qes_routing_invalid`](https://docs.signapi.dev/errors/qes_routing_invalid) | This routing cannot be used with qualified signers. |
| [`qes_worker_not_connected`](https://docs.signapi.dev/errors/qes_worker_not_connected) | No signing worker is connected for this mode. |
| [`recipient_email_blocked`](https://docs.signapi.dev/errors/recipient_email_blocked) | The recipient's email address is blocked. |
| [`recipient_type_unsupported`](https://docs.signapi.dev/errors/recipient_type_unsupported) | This recipient type is not supported here. |
| [`recipient_unknown`](https://docs.signapi.dev/errors/recipient_unknown) | A reference names a recipient that is not in the envelope. |
| [`sender_not_verified`](https://docs.signapi.dev/errors/sender_not_verified) | The sender email address is not a verified sender. |
| [`signing_place_missing`](https://docs.signapi.dev/errors/signing_place_missing) | A signer has no signing place. |
| [`template_cycle`](https://docs.signapi.dev/errors/template_cycle) | Templates insert each other in a loop or are nested too deeply. |
| [`template_data_missing`](https://docs.signapi.dev/errors/template_data_missing) | A template placeholder has no value in data. |
| [`template_field_type_invalid`](https://docs.signapi.dev/errors/template_field_type_invalid) | A template field has a value of the wrong type. |
| [`template_population_failed`](https://docs.signapi.dev/errors/template_population_failed) | The template could not be filled with the data provided. |
| [`template_syntax_invalid`](https://docs.signapi.dev/errors/template_syntax_invalid) | The template has a syntax error. |
| [`upload_checksum_mismatch`](https://docs.signapi.dev/errors/upload_checksum_mismatch) | The uploaded file does not match the declared checksum or size. |
| [`upload_url_expired`](https://docs.signapi.dev/errors/upload_url_expired) | The upload URL has expired. |
| [`upload_url_invalid`](https://docs.signapi.dev/errors/upload_url_invalid) | The upload URL is not valid. |
| [`validation_failed`](https://docs.signapi.dev/errors/validation_failed) | The request is not valid. |

## 429 Too Many Requests

| Code | Meaning |
|---|---|
| [`rate_limited`](https://docs.signapi.dev/errors/rate_limited) | Too many requests. Slow down and try again. |

## 500 Internal Server Error

| Code | Meaning |
|---|---|
| [`internal_error`](https://docs.signapi.dev/errors/internal_error) | Something went wrong on our side. Try again later. |

## 501 

| Code | Meaning |
|---|---|
| [`not_implemented`](https://docs.signapi.dev/errors/not_implemented) | This operation is not implemented yet. |

## 503 Service Unavailable

| Code | Meaning |
|---|---|
| [`region_unavailable`](https://docs.signapi.dev/errors/region_unavailable) | The region that holds this account cannot be reached right now. Try again shortly. |
