5. Errors
HTTP · 5. Errors
HTTP_ERROR_STATUS MUST
Servers MUST respond to failed operations with the status code mapped to the error code in the table below (Base ERROR_PROTOCOL_MAPPING).
| Error code | Status |
|---|---|
INVALID_INPUT |
400 Bad Request, or 422 Unprocessable Content for Resources that do not conform to a strict schema (section 7) |
INVALID_PATCH |
400 Bad Request when the patch is malformed, 422 Unprocessable Content when it cannot be applied (RFC 5789) |
NOT_FOUND |
404 Not Found |
CONFLICT |
409 Conflict |
EXPECT_MISMATCH |
412 Precondition Failed |
UPSERT_DENIED |
412 Precondition Failed |
NEGOTIATION |
406 Not Acceptable for the response format, 415 Unsupported Media Type for the request format, 400 Bad Request for specification versions |
UNSUPPORTED |
405 Method Not Allowed, with an Allow header field, for a method not supported on the endpoint; 501 Not Implemented for other features and operators |
STRICT_WARNINGS |
422 Unprocessable Content |
ACCESS_DENIED |
403 Forbidden, or 401 Unauthorized when the Client is not authenticated |
INTERNAL |
500 Internal Server Error, or 503 Service Unavailable, with Retry-After, when the Data source is unavailable |
PRECONDITION_FAILED (Metadata) |
412 Precondition Failed |
SCHEMA_INCOMPATIBLE (Schema) |
409 Conflict |
HTTP_ERROR_BODY SHOULD
Error bodies SHOULD be Problem Details objects (RFC 9457) labeled application/problem+json, with the code and target members of Base ERROR_PROBLEM_DETAILS.
Source: lingodata/crud@bc225ba · specs/http/sections/05-errors.md · http 0.2.0 (draft)
LingoData specifications, reference implementations and this site are licensed under the Apache License 2.0. Copyright 2026 Gustavo Gondim.