This is a general error that came out of the discussions surrounding reformatting/rewriting all the collision/conflict errors
Acceptance criteria:
- Current errors it will apply to: patch-result-label-description-duplicate, duplicate-label, label-description-duplicate, label-description-same-value, sitelink-conflict
- HTTP status code: 422
- Error code: data-policy-violation
- Error message: Edit violates data policy
- Context: { "violation": "{violation}", "violation_context": { "some": "context" } }
Note:
- {violation} is one of the existing error codes (see above, minus patch-result- errors)
- {violation_context} includes the illegal context, e.g. { "language-code": "foo" }
Task Breakdown
- one subtask per:
- duplicate-label
- label-description-duplicate
- label-description-same-value
- sitelink-conflict