Error and Information Messages

Errors are described by a combination of HTTP status code and a Direct+ error code.

There are two formats in the JSON response if an error occurs:

For Web Visitor (WVI)


{...
        "result": {
            "errorMessage": "Access token expired",
            "errorCode": "00040",
            "actionStatus": "401"
        }
    }

For all other APIs


  {...
        "error": {
            "errorCode": "10001",
            "errorMessage": "DUNS not found"
        }
    }