Skip to content

Constraint Violation

Overview

The standard response body format for errors in our API follows RFC 7807. The Constraint Violation moreover includes a list of violations.

Example

HTTP/2 400 Bad Request
Content-Type: application/problem+json
Content-Language: en

{
    "type": "https://api.bisnode.com/consumer-intelligence-documentation/v3/developer_resources/api_basics/errors/constraint_violation.html",
    "title": "Constraint Violation",
    "status": 400,
    "detail": "Request body contains one or more errors",
    "instance": "urn:bisnode:traceid:f3f9d15f-fe66-4d2f-b0d3-8aa4a84bac1e",
    "violations": [
        {
            "field": "name",
            "reason": "must not be null"
        },
        {
            "field": "url",
            "reason": "must use https protocol"
        }
    ]
}