API JSON Error response structure is not an array

API Error response has following JSON structure

{“errors”:{“error”:{“message”:“No accounting period includes the specified dates”}}}

It could be array of error if it is meant for capturing multiple errors.

Ex

{“errors”:[{“error”:{“message”:“No accounting period includes the specified dates”}}]}