chiark / gitweb /
ucgi/: Return useful status codes when things go wrong.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 28 Mar 2016 22:27:56 +0000 (23:27 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 28 Mar 2016 22:32:36 +0000 (23:32 +0100)
commit0cd9d59dfadf1a9abbef4428ff4f90bf32c01bd4
tree68c23b46e377491738fbb5fe81a5a8f4fe55498f
parentaa0bce91c04ffd1923a623819e5bbe1ccf609a81
ucgi/: Return useful status codes when things go wrong.

It's simply wrong for the ucgi machinery to report status 200 OK when it
encounters trouble (e.g., the CGI program doesn't actually exist).
So report a useful status code as part of `error' or `syserror'.  We
assume that the latter is always a server-side error; the former might
be either, so we must annotate each call as appropriate.
www-cgi/ucgi.c
www-cgi/ucgi.h
www-cgi/ucgicommon.c
www-cgi/ucgitarget.c