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)
committerJohn Crispin <john@phrozen.org>
Fri, 13 Sep 2019 11:05:09 +0000 (13:05 +0200)
commit14c38aa9017545b338d4b3ced7f822f89965d562
tree4fa4bd70671df458b847ced6a11f8d4de8d1fb4d
parentc6968635f50cef03d184645b8022a3ebf92df84e
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>
Makefile
src/main.c