log the full response on error