fix scope loss causing error in express.

The scope is being lost here. Express throws an error
```TypeError: Object #<Object> has no method 'type' at sendStatus (express/lib/response.js:326:8)```
because ```this``` is no longer pointing to ```res```.