Issue description
When our http request gets an error status code 5XX, for example: 500. How do we know if this status comes from upstream or apisix.
To know the source of the error status code, I think that in the response phase (header_filter), we can determine that the upstream response code is equal to 5XX. When it is equal to 5XX, we can set relevant headers in the response header to achieve our goal.
Issue description
When our http request gets an error status code
5XX, for example: 500. How do we know if this status comes fromupstreamorapisix.To know the source of the error status code, I think that in the response phase (
header_filter), we can determine that the upstream response code is equal to5XX. When it is equal to5XX, we can set relevant headers in the response header to achieve our goal.