cgi-io: pass appropriate HTTP error codes to failure()
authorJo-Philipp Wich <jo@mein.io>
Fri, 13 Sep 2019 06:32:58 +0000 (08:32 +0200)
committerPetr Štetiar <ynezz@true.cz>
Fri, 11 Oct 2019 12:33:23 +0000 (14:33 +0200)
commita1e87b4e0e49d157c027b080b6dd202257aeb5b1
tree38a57f4aaedcd7ad1c54d3e76da9b88165d9fab7
parent13075d4d519ecff96441b54e40ef6509eb5ad836
cgi-io: pass appropriate HTTP error codes to failure()

Instead of always replying with a generic 500 internal server error code,
use more appropriate codes such as 403 to indicate denied permissions.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 8c22db653158e8c4edf4fdd0e0554a603b96a655)
net/cgi-io/Makefile
net/cgi-io/src/main.c