Learn how to use the debug headers to help identify and fix issues that you may run into while using Section.
Enable debug headers
Section provides a range of debug headers that are disabled by default. These headers can be enabled by sending the
section-debug request header with any value. When this request header is received, Section will respond with the following debug headers:
When no bytes are received from the origin web server
section-origin-status header is set to
000 (e.g. DNS failures).
When a response is received from the origin web server
section-origin-status is set to the upstream status if it is a single status code or the last value when the upstream status is an array of response codes (e.g. due to retries).
When no bytes/response is received from the origin web server and Section can resolve the DNS for the origin web server (a request to the origin is made)
section-origin-failure header is set to
true, otherwise it is not set.
When Section is unable to resolve the DNS of the origin web server
section-origin-dns-failure header is set to
true, otherwise it is set to
This header indicates in seconds the time taken by the Section platform to receive the entire response from the origin web server.