Developers
Responses
Understanding response formats and status codes in the absentify API.
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:
- 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.
For best results, always handle both 200
success codes and error responses in your application to manage all outcomes gracefully.
Was this page helpful?