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 } }