diff options
author | cflip <cflip@cflip.net> | 2023-06-03 11:52:47 -0600 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2023-06-03 11:52:47 -0600 |
commit | 9239ee0dbee152f8ebbd12726d8bdc6d5720e2f4 (patch) | |
tree | 96b3e274a4ce1631a72d6490d4a7585118d1f49c /http.h | |
parent | ff0c20e0828a204222b6c535605cf00d796a1e1b (diff) |
Respond with 501 Not Implemented for unknown request methods
Diffstat (limited to 'http.h')
-rw-r--r-- | http.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -7,12 +7,15 @@ #define CFWS_MAX_RESPONSE 4096 enum http_req_method { + HTTP_METHOD_UNKNOWN, HTTP_METHOD_GET }; enum http_res_code { HTTP_RESPONSE_OK, - HTTP_RESPONSE_NOTFOUND + HTTP_RESPONSE_BADREQUEST, + HTTP_RESPONSE_NOTFOUND, + HTTP_RESPONSE_NOTIMPLEMENTED }; struct http_request { |