remove res.statusString

This commit is contained in:
TJ Holowaychuk 2014-06-10 14:31:41 -07:00
parent 1f908137d2
commit 71536b35be
2 changed files with 1 additions and 16 deletions

View file

@ -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:

View file

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