How to stream response from status code > 400 automatically? #1914
-
|
Hey everyone. I am beginner developer and I am trying to create simple public gateway which streams request to corresponding micro service.
When I am doing stream with deprecated "request" library even if I am getting response with status code >=400, it still forwards the status code, body, headers to client. However, when I try to do same with "got" by following way: It throws an error and destroys the stream. I think I can add |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
This has been asked almost an year ago, but since I found the answer, I’m leaving it here for future reference. |
Beta Was this translation helpful? Give feedback.
Set
throwHttpErrors: false.This has been asked almost an year ago, but since I found the answer, I’m leaving it here for future reference.