All errors

host_returned_error

The target host returned an error response.

target httpHTTP 500terminalnever billed

Common causes

  • · The page responded 4xx or 5xx.

What to do

  • · Set `ignore_host_errors=true` to capture the error page itself.
  • · Check whether the page needs cookies or an Authorization header.

Response shape

HTTP 500
{
  "is_successful": false,
  "error_code": "host_returned_error",
  "error_message": "The target host returned an error response.",
  "documentation_url": "https://api.pagecapture.dev/docs/errors/host_returned_error",
  "request_id": "req_01..."
}