The new error should follow this format:
HTTP status code: 422
"code":"data-policy-violation"
"message":"Edit violates data policy"
"context":{ "violation": "{violation}", "violation_context": { "some": "context" } }Note:
- remember to check if the OAS needs updating as well.
- {violation} is one of the existing error codes (see main ticket, minus patch-result- errors)
- {violation_context} includes the illegal context, e.g. { "language-code": "foo" }