Skip to main content
When a request to the Stemfard API cannot be completed successfully, the API returns a non-200 HTTP status code and a JSON response body that describes what went wrong. Your application should always check the HTTP status code before processing a response, and handle error responses appropriately rather than assuming every response contains valid result data.

HTTP status codes

Validation error response (422)

When the API returns 422, the response body follows this schema:
The detail array contains one entry for each validation problem found in your request.
object[]
required
Array of validation error objects. Contains one entry per field that failed validation.

Common validation errors

Handling errors

The examples below show how to detect and handle error responses in your application.

Example error responses

401 — missing API key
422 — missing required field
422 — multiple validation failures
Do not retry requests that return 422. A validation error means your request body is malformed — retrying the same request will always produce the same error. Fix the request body first, then retry.