HTTP Status Codes

Health Gorilla uses standard HTTP status codes to indicate the outcome of every API request. Errors are accompanied by a FHIR OperationOutcome resource that provides detailed diagnostics in a machine-readable format.

This page lists the most common status codes returned by the Health Gorilla API and explains how to interpret them.

Success Codes

Status CodeMeaningDescription
200 OKSuccessThe request was successful and a response body is returned.
201 CreatedResource createdA new FHIR resource was successfully created.
202 AcceptedRequest accepted (async)The request was accepted for processing (e.g., $p360-retrieve).
204 No ContentSuccess with no bodyThe operation succeeded but no response body is returned.

Client Errors

Status CodeMeaningTypical Cause
400 Bad RequestMalformed or invalid inputMissing fields, wrong types, or invalid values.
401 UnauthorizedAuthentication failedMissing, expired, or invalid access token.
403 ForbiddenInsufficient permissionsValid token, but lacking required scope or role.
404 Not FoundResource not foundThe specified resource does not exist.
409 ConflictDuplicate or conflicting dataResource already exists or cannot be updated due to conflict.
422 Unprocessable EntityValidation failedSemantically correct request, but FHIR validation failed.

Server Errors

Status CodeMeaningTypical Cause
500 Internal Server ErrorServer errorUnexpected system error — try again later.
503 Service UnavailableMaintenance or overloadThe system is temporarily unavailable.

All error responses include a FHIR OperationOutcome resource with structured details.