From d90d6e896addee3f4103986308a299cfac6c7f13 Mon Sep 17 00:00:00 2001 From: Julien CROUZET Date: Wed, 9 Dec 2015 18:31:22 +0100 Subject: [PATCH] 416 is 'Range Not Satisfiable' not 'Requested Range Not Satisfiable' --- README.md | 3 ++- lib/httpErrors.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6a31433..58eed36 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,8 @@ The module ships with the following HttpErrors: * 413 RequestEntityTooLargeError * 414 RequesturiTooLargeError * 415 UnsupportedMediaTypeError -* 416 RequestedRangeNotSatisfiableError +* 416 RangeNotSatisfiableError (For Node >= 4 & iojs >= 3) +* 416 RequestedRangeNotSatisfiableError (For Node 0.x & iojs < 3) * 417 ExpectationFailedError * 418 ImATeapotError * 422 UnprocessableEntityError diff --git a/lib/httpErrors.js b/lib/httpErrors.js index 071fb50..02f87f5 100644 --- a/lib/httpErrors.js +++ b/lib/httpErrors.js @@ -29,7 +29,8 @@ var HttpError = require('./baseClasses/HttpError'); // RequestEntityTooLargeError // RequesturiTooLargeError // UnsupportedMediaTypeError -// RequestedRangeNotSatisfiableError +// RangeNotSatisfiableError (For Node >= 4 & iojs >= 3) +// RequestedRangeNotSatisfiableError (For Node 0.x & iojs < 3) // ExpectationFailedError // ImATeapotError // UnprocessableEntityError