send a response if the cgi script failed