Error Handling

If there is an error with the request, the API will respond with a JSON object with a status key set to fail and a message key detailing the error. For example:

{
"status": "fail",
"message": "Collection not found”.
}