If an error occurred the response will be a JSON representation of what went wrong. This will provide the error code, a brief message as well as a specific code. The specific code is a useful piece of information to be provided in any bug reports.
Current exception codes and meanings are:
Method Not Allowed
Too Many Requests
Internal Server Error
Some exceptions will have an additional piece of information associated with the exception, which will contain more specific message about the exception.
Exception: Specific Code 23005
The required Date or iVvyDate parameter does not fall within 5 minutes of UTC time, invalidating the request. Refer here for more information on this.
Example: Date outside of accepted time range
"message":"Request is stale",
Exception: Specific Code 23016
A parameter provided in the request did not validate correctly. For example, the API might have been expecting a number, but a string was provided instead. This exception gets thrown when the first invalid parameter is found.
The additional messages will contain the messages from the validator as to why the value was not validated.
Example: Key does not validate error
"message":"'id' does not validate",
"additionalMessages":["Value must be a whole number"]
Exception: Specific Code 23017
A required parameter was missing from the request.