Pass data in error object for failed responses.