Browse Source

Export STATUS_CODES

Express (my framework) uses them as a default
response body when non is present. Others
might use them for something as well.

Beats duplicating the list :D
v0.7.4-release
visionmedia 15 years ago
committed by Ryan Dahl
parent
commit
501b4a54be
  1. 2
      lib/http.js

2
lib/http.js

@ -1,7 +1,7 @@
var sys = require('sys');
var CRLF = "\r\n";
var STATUS_CODES = {
var STATUS_CODES = exports.STATUS_CODES = {
100 : 'Continue',
101 : 'Switching Protocols',
200 : 'OK',

Loading…
Cancel
Save