Read and return response data on error.