How to end http request with custom error codes like 400, 401 ? #824
Answered
by
e3dio
saikumarpb
asked this question in
Q&A
-
my current implementation , i am closing http as shown below
but this is being sent with http response status as 200 |
Beta Was this translation helpful? Give feedback.
Answered by
e3dio
Nov 3, 2022
Replies: 1 comment 5 replies
-
You probably wrote a header before that so it auto writes status 200. Write status before other headers |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
saikumarpb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You probably wrote a header before that so it auto writes status 200. Write status before other headers