Closed Michael2008S closed 5 years ago
hi @Michael2008S
whenever you want to merge responses from different backends (either concurrently or sequentially), the status codes should be 'normalized'.
you can enable the return_error_details
on your backends and you'll get some detail of the errors in your response body but it is not possible to forward status codes.
if you enable the return_error_details
, maybe your next request won't get the required data to fulfill the URL to hit
cheers
Ok,Thanks.
Kinda necroing this thread, but @kpacha's response should be added to the docs. It's obvious when you think about it, but not by default.
This issue was marked as resolved a long time ago and now has been automatically locked as there has not been any recent activity after it. You can still open a new issue and reference this link.
In
Sequential Proxy
How to use the backend response code and content instead of500
-Error #01: Invalid status code
? For the first request's response.The gateway log :
The backend response is below:
This is my config: