Closed Castronebe closed 3 years ago
hi, @Castronebe !
the feature you're describing is not supported. Whenever more than one backend is linked to a single endpoint, the internal pipe ignores the actual value of the received status code and goes for an ok/ko aproach (thus, returning a 200 or a 500)
once there is a ko in the pipe, it is really hard for the outer layers to know what happened and why
for such complex workflows, I'd rather:
cheers!
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.
hi, I am trying to return an error with lua when sequential backends are called.
for example when calling 2 sequential endpoints, if the first responds 401, return 401 and not a 500 as Krakend does today
I need to know the status code of the first response to use the custom_error ("", 403) function, but the status code is always "0"
note: I did the same with "github.com/devopsfaith/krakend-lua/proxy" and it didn't work.
can you help me?