Skip to content

Commit 1858d1c

Browse files
committed
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.
1 parent 3d84c3d commit 1858d1c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

doc/api/http.markdown

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ parsing only. It parses a message into headers and body but it does not
2525
parse the actual headers or the body.
2626

2727

28+
## http.STATUS_CODES
29+
30+
* {Object}
31+
32+
A collection of all the standard HTTP response status codes, and the
33+
short description of each. For example, `http.STATUS_CODES[404] === 'Not
34+
Found'`.
35+
2836
## http.createServer([requestListener])
2937

3038
Returns a new web server object.

0 commit comments

Comments
 (0)