News for hackers. Stuff that matters.
Re:Althttpd: Simple webserver in a single C file by TZubiri on Tuesday June 08, 2021 @08:26AM (#27434212)
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

Re:Althttpd: Simple webserver in a single C file by Sohcahtoa82 on Tuesday June 08, 2021 @01:55PM (#27438581)
I always wanted an HTTP response code for when the server detects a malicious request. Like, 430 DONT BE AN ASSHOLE
Re:Althttpd: Simple webserver in a single C file by zbentley on Wednesday June 09, 2021 @10:15AM (#27448102)
Relatedly, 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.