From 1858d1c340ca2631e28a32eb542c85ee8f725cac Mon Sep 17 00:00:00 2001 From: isaacs Date: Sat, 5 May 2012 19:27:42 -0700 Subject: [PATCH] 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. --- doc/api/http.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/api/http.markdown b/doc/api/http.markdown index feffa2374d1..d064b3f29dc 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.