Use the nested data array when available
More detailed error handling