add support for setting http response codes
fixed syntax