ErrorResponse
Standard error response
codestringrequired
Machine-readable error code
Example:
invalid_request_parametermessagestringrequired
Human-readable error message
Example:
Invalid date format, must be yyyy-MM-ddnumberintegerrequired
Internal error number
Example:
10028paramstringrequired
Parameter that caused the error
Example:
toErrorResponse
{
"code": "invalid_request_parameter",
"message": "Invalid date format, must be yyyy-MM-dd",
"number": 10028,
"param": "to"
}