Error Handling

catenda uses conventional http response codes to indicate the success or failure of an api request in general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that failed given the information provided (e g , a required parameter was omitted), and codes in the 5xx range indicate a system error that cannot be resolved by the user error responses are json objects comprised of a code and a message the code is the numerical error code of the error and the message contains a human readable message describing the error 400 bad request code description 23 the uploaded file is empty 24 incorrect field or content in the request 102 viewer token provided is invalid 401 unauthorized code description 10 the access token is missing 11 the access token provided is empty or invalid 12 the access token provided has expired 403 forbidden code description 21 forbidden action 100 insufficient privilege for action 101 maximum number of projects for organization reached 404 not found code description 20 couldn't find the specified resource 409 conflict code description 25 action is incompatible with the specified resource 600 action is incompatible with the specified custom field 422 unprocessable content code description 22 input provided is incompatible 500 internal server error code description 30 error occurred on the server 103 multi factor authorization required