> ## Documentation Index
> Fetch the complete documentation index at: https://absentify.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# API responses

> Reference for absentify API response formats, JSON content types, HTTP status codes, and standard error structures returned by every endpoint.

### Content type

To receive JSON responses from the absentify API, ensure the following headers are included in each request:

* **Content-Type**: `application/json`
* **Accept**: `application/json`

### Successful response

For successful API calls, absentify will return a `200` HTTP status code, indicating that the request was processed as expected.

### Error response

In cases of errors, absentify uses appropriate HTTP status codes to reflect the type of issue encountered. The error response will include a JSON message in the following structure:

```json theme={null}
{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}
```

* **message**: A brief description of the error.
* **code**: A code that represents the error type.
* **issues**: A list of specific issues related to the request, each with its own message.

<Note>
  For best results, always handle both `200` success codes and error responses in your application to manage all outcomes gracefully.
</Note>
