Use keys from request.form to get the form data. You have to define the genuuid function somewhere. If there is not a serialization function for a given schema, a new serialization function will be compiled forwarding the httpStatus, and the contentType if provided. Right now we are just outputting the information with console.log. def redirect_request (self, req, fp, code, msg, headers, newurl): """Return a Request or None in response to a redirect. In other words static content is the case when nginx simply reads file from filesystem and sends it as is. someServiceApi.getData .and.returnValue(Observable.throw(new Response({status: 400, body: [], message: 'not found error'}))); So I Corrected it by replicating the exact expected function in my return object rather passing a Response type value. Type 'Response>' does not satisfy the constraint 'ServerResponse'. Values are not modified. Changed HTTPConnection.request_chunked() to not erroneously emit multiple Transfer-Encoding headers in the case that one is already specified. See the Quick Reference to HTTP Headers for a useful listing of HTTP headers with brief explanations of their meaning and use. So run the SQL script below to create tutorials table:. See the Quick Reference to HTTP Headers for a useful listing of HTTP headers with brief explanations of their meaning and use. The server doesnt crash now and everything seems to work. And indeed it has no .status function. Care must be taken not to inadvertently modify these special headers or errors may occur. When he named the promise.then response as res, the .then scope assumes the res is from resolved promise, not from express route. Please be sure to answer the question.Provide details and share your research! CREATE TABLE IF NOT EXISTS `tutorials` ( id int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, title varchar(255) NOT NULL, description varchar(255), published BOOLEAN DEFAULT false ) If there is not a serialization function for a given schema, a new serialization function will be compiled forwarding the httpStatus, and the contentType if provided. These special headers will be included in the request.headers object. @AnshulJindal + Roy.B -- I put the function down in the pool.connect scope and I removed the done(); call because it was actually doing nothing. I don't remember how this answer solved issue and accepted as a correct answer but currently it's not a valid answer.Please ignore this answer. Thanks guys Render an HTML template with a