2 ms·
Really simple, I implemented a couple. Remember that the letters after the status code are aesthetic, so make sure to put your style in there: 200 FINE 200 KTH
by TZubiri 5y ago
Really simple, I implemented a couple. Remember that the letters after the status code are aesthetic, so make sure to put your style in there:
200 FINE
200 KTHX
404 MISS
403 NO
500 FUCK
Another similar server in one file is busybox httpd command if you are interested https://git.busybox.net/busybox/tree/networking/httpd.c https://git.busybox.net/busybox/tree/networking/httpd.c
- Sohcahtoa82 5y agoI always wanted an HTTP response code for when the server detects a malicious request. Like, 430 DONT BE AN ASSHOLE
- zbentley 5y agoRelatedly, in every C project I've ever worked on, the custom (>255) error code for failures due to malicious looking input that could not possibly have been supplied by mistake is in the const EGETFUCT.