From 71536b35be30a44ac34eeba32b04b664e9700de8 Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Tue, 10 Jun 2014 14:31:41 -0700 Subject: [PATCH] remove res.statusString --- docs/api/response.md | 4 ---- lib/response.js | 13 +------------ 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/docs/api/response.md b/docs/api/response.md index 2283aa0..86e3bda 100644 --- a/docs/api/response.md +++ b/docs/api/response.md @@ -18,10 +18,6 @@ Get response status. By default, `res.status` is not set unlike node's `res.statusCode` which defaults to `200`. -### res.statusString - - Response status string - ### res.status= Set response status via numeric code or case-insensitive string: diff --git a/lib/response.js b/lib/response.js index 0e0524c..167ff96 100644 --- a/lib/response.js +++ b/lib/response.js @@ -46,17 +46,6 @@ module.exports = { return this.res._headers || {}; }, - /** - * Return response status string. - * - * @return {String} - * @api public - */ - - get statusString() { - return http.STATUS_CODES[this.status]; - }, - /** * Get response status code. * @@ -444,7 +433,7 @@ module.exports = { toJSON: function(){ return { status: this.status, - string: this.statusString, + string: http.STATUS_CODES[this.status], header: this.header } }