Skip to content
Myr

Reorganizing exceptions

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent 5c7341c · Browse files · 2 files+13 added−11 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+13 added−11 removed

  • other:+13 added−11 removed

2 files+13 added−11 removed

modified:lib/express/exceptions.js+2 added-11 removed
modified:lib/express/helpers.js+11 added
43 unmodified lines
44 504: 'Gateway Time-out',45 505: 'HTTP Version not supported'46}4748// --- InvalidStatusCode4950InvalidStatusCode = ExpressError.extend({51 name: 'InvalidStatusCode',52 init: function(status) {53 this.message = status + ' is an invalid HTTP response code'54 }55})5657// --- Helpers5859/**60 * JSON encode _object_.61 *62 * @param {string} object
212 unmodified lines