Fixed cgi return codes