diff options
author | isaacs <i@izs.me> | 2012-05-05 19:27:42 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-05-05 19:27:42 -0700 |
commit | 1858d1c340ca2631e28a32eb542c85ee8f725cac (patch) | |
tree | 5cb1e890224be89f10b27328dbc9d29041f189ff | |
parent | 3d84c3db257dfa1b92476cc6a50abf9c6e4b0583 (diff) | |
download | node-new-1858d1c340ca2631e28a32eb542c85ee8f725cac.tar.gz |
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.
-rw-r--r-- | doc/api/http.markdown | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/api/http.markdown b/doc/api/http.markdown index feffa2374d..d064b3f29d 100644 --- a/doc/api/http.markdown +++ b/doc/api/http.markdown @@ -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. |