Ensure response.error is populated correctly.