Document http.STATUS_CODES
This is an incredibly useful thing to know about, and it will likely never change. I can't remember why we didn't ever document it, and people keep suggesting we do so.
This commit is contained in:
parent
3d84c3db25
commit
1858d1c340
@ -25,6 +25,14 @@ parsing only. It parses a message into headers and body but it does not
|
||||
parse the actual headers or the body.
|
||||
|
||||
|
||||
## http.STATUS_CODES
|
||||
|
||||
* {Object}
|
||||
|
||||
A collection of all the standard HTTP response status codes, and the
|
||||
short description of each. For example, `http.STATUS_CODES[404] === 'Not
|
||||
Found'`.
|
||||
|
||||
## http.createServer([requestListener])
|
||||
|
||||
Returns a new web server object.
|
||||
|
Loading…
x
Reference in New Issue
Block a user