Hi,
I have a question about the rationale for returning HTTP 500 when an HTTPBackendRef is invalid (e.g. due to a missing ReferenceGrant, leading to RefNotPermitted).
The spec states that:
When a HTTPBackendRef is invalid, 500 status codes MUST be returned…
However, in this scenario:
- The client request is valid
- The backend may be healthy
- The failure is due to a routing/configuration constraint, not a runtime error
Using 500 could suggest an internal failure of the gateway, while 503 might suggest backend unavailability — neither seems to precisely reflect the situation.
Could you clarify:
- What was the motivation for choosing 500 here?
- Was this mainly for consistency across implementations?
- Were alternative status codes considered?
Thanks!
Hi,
I have a question about the rationale for returning HTTP 500 when an HTTPBackendRef is invalid (e.g. due to a missing ReferenceGrant, leading to RefNotPermitted).
The spec states that:
However, in this scenario:
Using 500 could suggest an internal failure of the gateway, while 503 might suggest backend unavailability — neither seems to precisely reflect the situation.
Could you clarify:
Thanks!