adding ability to set statusCode for the response