# Download a document Returns the binary file related to the document specified in the request URL. Endpoint: GET /v1/persons/{person_id}/documents/{id}/file Version: 1.0 ## Path parameters: - `person_id` (string, required) - `id` (string, required) ## Response 200 fields (application/json): - `date` (string) Example: "Sun, 13 Aug 2017 20:35:45 GMT" - `x-content-type-options` (string) Example: "nosniff" - `content-disposition` (string) Example: "attachment; filename=sample_pdf.pdf" - `content-length` (string) Example: "3028" - `x-request-id` (string) Example: "fbc2deff-8066-11e7-9271-02420a000109" - `content-type` (string) Example: "application/pdf" ## Response 400 fields (application/json): - `id` (string) Example: "a95f2aaf-4e0c-4d49-8021-8a16a884ed86" - `status` (string) Example: "400" - `code` (string) Example: "build_pagination_headers_failure" - `title` (string) Example: "Failed to build pagination headers." - `detail` (string) Example: "Cannot connect to database." ## Response 403 fields (application/json): - `id` (string) Example: "a95f2aaf-4e0c-4d49-8021-8a16a884ed86" - `status` (string) Example: "403" - `code` (string) Example: "unauthorized_action" - `title` (string) Example: "Unauthorized Action" - `detail` (string) Example: "Unauthorized action is not allowed." ## Response 404 fields (application/json): - `id` (string) Example: "a95f2aaf-4e0c-4d49-8021-8a16a884ed86" - `status` (string) Example: "404" - `code` (string) Example: "model_not_found" - `title` (string) Example: "Model Not Found" - `detail` (string) Example: "Couldn't find 'Solaris::Identification' for id 'bbbcccfff388923eb899a5852df6cidt'." ## Response 500 fields (application/json): - `id` (string) Example: "e8915041-9d8c-4d96-9dd1-04e8522ecdbf" - `status` (string) Example: "500" - `code` (string) Example: "generic_error" - `title` (string) Example: "Generic Error" - `detail` (string) Example: "There was an error."