mikeal/response — pull request #1 by rook2pawn (2014-04-20 15:29:25+00:00)
Title: json status codes

This fix allows for status code to be set and JSON to be correctly passed

the internal mime map constructor for json was overlooked to not actually stringify the view (instead it would .write the object directly)

var r = response();
r.statusCode = 302;
r.json({test:2}).pipe(res)

the status code would be 200 and the body would be undefined.