{{ .StatusCode }} {{ .StatusText }}
{{ if eq .StatusCode 400 }}

Your request is invalid. Please check the error below for more information.

{{ else if eq .StatusCode 404 }}

The content path you requested cannot be found. There's likely an invalid or missing DAG node.

{{ else if eq .StatusCode 406 }}

This gateway is unable to return the data in the format requested by the client.

{{ else if eq .StatusCode 410 }}

This gateway refuses to return the requested data.

{{ else if eq .StatusCode 412 }}

This gateway is unable to return the requested data under the conditions sent by the client.

{{ else if eq .StatusCode 429 }}

There are too many pending requests. Please wait some time and try again.

{{ else if eq .StatusCode 451 }}

This gateway is not allowed to return the requested data due to legal reasons.

{{ else if eq .StatusCode 500 }}

This gateway was unable to return the requested data due to an internal error. Please check the error below for more information.

{{ else if eq .StatusCode 502 }}

The gateway backend was unable to fulfill your request due to an error.

{{ else if eq .StatusCode 504 }}

This gateway is taking too long to fetch content from content providers. Please check the error below for more information.

{{ if and .RootCID .FailedCID (ne .RootCID .FailedCID) }}

Note: The timeout occurred while fetching a sub-resource (CID: {{ .FailedCID }}) of the root content (CID: {{ .RootCID }}).

{{ end }} {{ else if eq .StatusCode 506 }}

The gateway backend was unable to fulfill your request at this time. Try again later.

{{ end }}
{{ .Error }}

How you can proceed:

{{ if and (eq .StatusCode 504) .FailedCID .DiagnosticServiceURL }} Check CID retrievability {{ end }}