Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (19 sloc) 451 Bytes
/*
* Functions for printing HTTP error
* codes and error messages.
*/
#ifdef USE_FASTCGI
#include <fcgi_stdio.h>
#else
#include <stdio.h>
#endif
#include "cgic/cgic.h"
#include "jsonptunnel.h"
/*
* Send a '400' 'Bad Request' HTTP error code and exit.
*/
void exitStatus(int status, char *msg) {
cgiHeaderContentType("text/plain");
cgiHeaderStatus(status, msg);
fprintf(cgiOut, "There was an error processing your request: %s\n", msg);
}