{"action":"opened","issue":{"url":"https://api.github.com/repos/strongloop/express/issues/2529","labels_url":"https://api.github.com/repos/strongloop/express/issues/2529/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/express/issues/2529/comments","events_url":"https://api.github.com/repos/strongloop/express/issues/2529/events","html_url":"https://github.com/strongloop/express/issues/2529","id":56481283,"number":2529,"title":"Deprecated message thrown when using res.status","user":{"login":"limianwang","id":1587797,"avatar_url":"https://avatars.githubusercontent.com/u/1587797?v=3","gravatar_id":"","url":"https://api.github.com/users/limianwang","html_url":"https://github.com/limianwang","followers_url":"https://api.github.com/users/limianwang/followers","following_url":"https://api.github.com/users/limianwang/following{/other_user}","gists_url":"https://api.github.com/users/limianwang/gists{/gist_id}","starred_url":"https://api.github.com/users/limianwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/limianwang/subscriptions","organizations_url":"https://api.github.com/users/limianwang/orgs","repos_url":"https://api.github.com/users/limianwang/repos","events_url":"https://api.github.com/users/limianwang/events{/privacy}","received_events_url":"https://api.github.com/users/limianwang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-04T05:12:05Z","updated_at":"2015-02-04T05:12:05Z","closed_at":null,"body":"I have been aware that since express@4.x, `res.send(201, obj)` format has been deprecated. But I am running into a situation where in 4.x I would want to send an `id` back, as shown as follows:\r\n\r\n```js\r\nvar app = express();\r\n\r\napp.use(function(req, res) {\r\n  res.statusCode(201).send(1111); // where this is the ID.\r\n});\r\n\r\nrequest(app)\r\n   .get('/')\r\n   .expect(1111)\r\n   .expect(201, done);\r\n```\r\n\r\nBut I would get the deprecated message:\r\n\r\n`express deprecated res.send(status)`\r\n\r\nI was wondering if how should I approach this situation in `express` where I would want to send an integer back without having to build an object (i.e. `{ id: 1111 }`)"}}