The status code is returning incorrectly. I expect it to return 404, but it is ultimately returning 200. #1810
Unanswered
LetAmericaGreatAgain
asked this question in
Q&A
Replies: 1 comment
-
You need to call writeStatus before you call writeHeader |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
std::string status = "404"; res->writeStatus(std::string_view(status)); res->end("File not found");
The status code is returning incorrectly. I expect it to return 404, but it is ultimately returning 200.
Beta Was this translation helpful? Give feedback.
All reactions