Stemfard API error codes, causes, and how to fix them
HTTP status codes returned by the Stemfard API, the validation error response schema, and code examples for handling errors in your application.
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.
Location of the invalid field as an array of path segments. The first element is always "body", followed by the field name (e.g., ["body", "a"]). For nested fields, the array contains each level of nesting.
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.