Database
Linked to other records
The change would break a link between records: deleting something other records still point at, or pointing at a record that does not exist. Remove or move the dependent records first.
HTTP 409
FOREIGN_KEY_VIOLATIONIn the response
Besides the standard members type, title, status, detail, instance, plus code and requestId:
Nothing else. This error carries no errors or meta.
Example response
HTTP 409 · application/problem+json
{
"type": "https://smartpathshaala.com/problems/foreign-key-violation",
"title": "Linked to other records",
"status": 409,
"detail": "<what went wrong this time>",
"instance": "<the request path>",
"code": "FOREIGN_KEY_VIOLATION",
"requestId": "<also sent as X-Request-Id>"
} Values in angle brackets vary per request. Quote the requestId when reporting an error; it is how the server’s log line is found.