HTTP Response Codes

The Health Graph API uses the standard set of HTTP response codes. For convenience, the most relevant ones are listed here.

Note that, in the event of an error, a message is returned in the response body.

Code Type Description
200 OK Success!
304 Not Modified The requested resource has not been modified since the time included in the If-Modified-Since request header.
400 Bad Request The request could not be understood due to malformed syntax.
401 Unauthorized Authentication credentials were missing or incorrect.
403 Forbidden The request is understood but it has been refused due to insufficient permission.
404 Not Found The URI requested is invalid or the resource requested, such as a user, does not exist.
405 Method Not Allowed The URI requested does not support the specific HTTP method used in the request.
406 Not Acceptable The URI requested does not support any of the MIME types given in the Accept header.
415 Unsupported Media Type The URI requested cannot accept the MIME type given in the Content-Type header.
500 Internal Server Error Something is broken. Please contact support so the Health Graph team can investigate.
502 Bad Gateway The Health Graph is down or being upgraded.
503 Service Unavailable The Health Graph servers are up, but overloaded with requests. Try again later.