business_rule_violation
A domain invariant rejected the operation. This code carries the family; `error.subcode` names the concrete rule and `error.message` explains it.
| Code | Type | HTTP | Category |
|---|---|---|---|
business_rule_violation | invalid_request_error | 422 | Request |
Cause
A domain invariant rejected the operation. This code carries the family; error.subcode names the concrete rule and error.message explains it.
What to do
Look up error.subcode in the error reference: the payload may be perfectly valid and the operation still not allowed in the current state.
Related
All Request error codes
Causes and actions for errors in this category.
Error codes by category
Find an error by the category that emits it.
Full reference table
All codes, HTTP statuses, types and descriptions in one reference.
Error model
Interpret the error envelope and handle errors by code.