Handling Errors

Hint's API errors follow standard practice of including a status code, and a message . The status code conforms to typical HTTP codes whenever possible, and the message will be as useful as we can make it.
All Hint API errors have the same attributes.

Example

If you tried to create a patient without a first name, you would receive a response body that looks like this:

{
  status: 422,
  message: "Validation failed: First name can't be blank"
}