visionmedia/express — pull request #1412 by chuyeow (2012-11-12 06:32:06+00:00)
Title: Add a 'jsonp force 200' setting to force an HTTP 200 JSONP response

```
app.enable('jsonp force 200');
app.use(function(req, res){
res.statusCode = 500;
res.jsonp({ error: 'message' });
});
```
and
```
```

This is useful because browsers are unable to respond to non-200 JSONP responses. A good way to inform browsers of the actual HTTP status code is to include it in the JSON response, e.g.

```
cb && cb({"code":400,"message":"Invalid params"})`.
```