Short answer: that’s expected. The docs don’t state that the Default Error Handler’s message template will include or render the full, mutated request headers, and they don’t guarantee that custom-injected headers are exposed back into the error template context. The variables documented for request construction (including stream_partition) are supported in URL/params/headers/body and transformations, but availability inside the error handler message isn’t specified. [[HttpRequester](
https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/HttpRequester); [Error handling](
https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/error-handling)]. What you can do instead: - Persist the partition value in records via a transformation (e.g., error_context.page_id = {{ stream_partition.page_id }}). This reliably surfaces it for debugging. [[Advanced configuration](
https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/partitioning#advanced-configuration)]. - If you need request-level context in errors, prefer referencing response attributes the error handler does expose (status code/body via response filters) and avoid relying on custom headers appearing in the message. The docs only describe configuring retries/filters/backoff, not echoing request headers. [[Error handling](
https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/error-handling)]. - For complex injection or path-based identifiers, disable automatic injection and use custom parameter injection to build the request; still, plan to log the identifier via a transformation rather than expecting it in the error message. [[Custom parameter injection](
https://docs.airbyte.com/platform/connector-development/connector-builder-ui/partitioning#custom-parameter-injection)]. Given current limitations and the absence of documented support for logging custom headers in error messages, use transformations to carry the page_id (and any needed context) into records/logs. If deeper HTTP logging is needed, note there are open requests to enhance connector logging. [[log http calls](
https://github.com/airbytehq/airbyte/issues/52077); [debugging logging issue](
https://github.com/airbytehq/airbyte/issues/64507)].