Changed CGI base to show correctly referer errors and generating respons...

...e errors