- improve toClassName function readability and JSDoc completeness
- Drop support for Node.js 0.6
- Remove
I'mateapot
export; useImATeapot
instead - Remove support for status being non-first argument
- Rename
UnorderedCollection
constructor toTooEarly
- deps: depd@2.0.0
- Replace internal
eval
usage withFunction
constructor - Use instance methods on
process
to check for listeners
- Replace internal
- deps: statuses@2.0.1
- Fix messaging casing of
418 I'm a Teapot
- Remove code 306
- Rename
425 Unordered Collection
to standard425 Too Early
- Fix messaging casing of
- deps: toidentifier@1.0.1
- Add
isHttpError
export to determine if value is an HTTP error - deps: setprototypeof@1.2.0
- deps: inherits@2.0.4
- deps: setprototypeof@1.1.1
- Fix error creating objects in some environments
- Set constructor name when possible
- Use
toidentifier
module to make class names - deps: statuses@'>= 1.5.0 < 2'
- deps: depd@~1.1.2
- perf: remove argument reassignment
- deps: setprototypeof@1.1.0
- deps: statuses@'>= 1.4.0 < 2'
- deps: depd@1.1.1
- Remove unnecessary
Buffer
loading
- Remove unnecessary
- deps: setprototypeof@1.0.3
- Fix shim for old browsers
- Accept custom 4xx and 5xx status codes in factory
- Add deprecation message to
"I'mateapot"
export - Deprecate passing status code as anything except first argument in factory
- Deprecate using non-error status codes
- Make
message
property enumerable forHttpError
s
- deps: inherits@2.0.3
- Fix issue loading in browser
- deps: setprototypeof@1.0.2
- deps: statuses@'>= 1.3.1 < 2'
- Support new code
421 Misdirected Request
- Use
setprototypeof
module to replace__proto__
setting - deps: statuses@'>= 1.3.0 < 2'
- Add
421 Misdirected Request
- perf: enable strict mode
- Add
- perf: enable strict mode
- Add
HttpError
export, forerr instanceof createError.HttpError
- deps: inherits@2.0.1
- deps: statuses@'>= 1.2.1 < 2'
- Fix message for status 451
- Remove incorrect nginx status code
- Fix regression where status can be overwritten in
createError
props
- Construct errors using defined constructors from
createError
- Fix error names that are not identifiers
createError["I'mateapot"]
is nowcreateError.ImATeapot
- Set a meaningful
name
property on constructed errors
- Fix stack trace from exported function
- Remove
arguments.callee
usage
- Remove duplicate line
- Fix
expose
to betrue
forClientError
constructor
- deps: statuses@1
- Fix dependency version to work with old
npm
s
- deps: statuses@~1.1.0
- Fix publish error
- Support Node.js 0.6
- Use
inherits
instead ofutil
- Fix the way inheriting functions
- Support
expose
being provided in properties argument
- Default status to 500
- Support provided
error
to extend
- Fix accepting string message
- Initial release