Skip to content

EMPTY_DOCUMENT ​

EMPTY_DOCUMENT

Description ​

The document part of the request holds no byte. An empty document has a fingerprint, but it proves nothing.

HTTP Status ​

422 Unprocessable Entity

doc_url Format ​

The doc_url value is an absolute URL and changes by environment:

<docs-base-url>/errors/empty_document

Typical Causes ​

  • The client sent the part before it read the file.
  • The file on the disk of the client is empty.

Example ​

Request: POST /v1/certification/certifications with an empty document part.

Response:

json
{
  "errors": [
    {
      "code": "EMPTY_DOCUMENT",
      "message": "The document holds no byte",
      "doc_url": "https://docs.example.com/errors/empty_document"
    }
  ]
}

How To Fix ​

  1. Check that the file holds at least 1 byte.
  2. Send the request again with a new idempotency key.

Website