Business rule violation

This error occurs when the request is invalid and does not meet the business rules defined by the server.

Description

Your client application issued a request to an API, but the request is invalid and does not meet the business rules, resulting in a business rule violation error.

Example

{
  "type": "https://dev.euipo.europa.eu/problems-registry/business-rule-violation",
  "title": "Business rule violation",
  "status": 422,
  "detail": "The request is invalid and not meeting business rules",
  "instance": "/messages/batch-download",
  "code": "business-rule-violation",
  "errors": [
    {
      "detail": "Some messages cannot be found in the mailbox of the user",
      "pointer": "#/identifiers"
    }
  ],
  "correlationId": "8209b6c28160defbf85e8383987c7673"
}

Troubleshooting Steps

  • Review the business rules: Ensure that your request complies with the business rules defined by the API.
  • Validate the request data: Check that all data in the request meets the required business logic and constraints.
  • Check for data ownership: Ensure that the data you are requesting or modifying belongs to the correct user or entity.

Error Details

The errors property in the response provides detailed information about specific issues within the request body. Each object in the errors array includes:

  • detail: A description of the specific error.
  • pointer: A JSON Pointer that indicates the location of the error within the request body.