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.