Follow

Error Responses

Response Body

When returning an error, the response body contains details of the error represented as a JSON hash.

For example, requesting the invalid “/bad_url” results in:

% curl https://app.liquidplanner.com/api/bad_url
{
"type": "Error",
"message": "Probably a typo (or junk) in your request: /api/bad_url",
"error": "BadRequest"
}
Status: 400

Hash Keys

The hash keys in an error response include:

type
the literal string “Error”
error
specific kind of error, e.g. “NotFound” or “BadRequest”
message
descriptive or explanatory message
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request