From 226ec2c9c9de617650ba05c8deca2a7d61f85727 Mon Sep 17 00:00:00 2001 From: Kei Son Date: Thu, 7 Jun 2018 16:27:53 +0800 Subject: [PATCH] Add missing errors --- types/restify-errors/index.d.ts | 5 +++++ types/restify-errors/restify-errors-tests.ts | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/types/restify-errors/index.d.ts b/types/restify-errors/index.d.ts index ecec86f8f7..fb9c136ab1 100644 --- a/types/restify-errors/index.d.ts +++ b/types/restify-errors/index.d.ts @@ -130,6 +130,11 @@ export class InsufficientStorageError extends DefinedHttpError { } export class BandwidthLimitExceededError extends DefinedHttpError { } export class NotExtendedError extends DefinedHttpError { } export class NetworkAuthenticationRequiredError extends DefinedHttpError { } +export class PayloadTooLargeError extends DefinedHttpError { } +export class UriTooLongError extends DefinedHttpError { } +export class MisdirectedRequestError extends DefinedHttpError { } +export class UnavailableForLegalReasonsError extends DefinedHttpError { } +export class LoopDetectedError extends DefinedHttpError { } export class BadDigestError extends DefinedRestError { } export class BadMethodError extends DefinedRestError { } diff --git a/types/restify-errors/restify-errors-tests.ts b/types/restify-errors/restify-errors-tests.ts index 600a0545fb..2bda424f6a 100644 --- a/types/restify-errors/restify-errors-tests.ts +++ b/types/restify-errors/restify-errors-tests.ts @@ -62,6 +62,12 @@ httpError = new restifyErrors.InsufficientStorageError(); httpError = new restifyErrors.BandwidthLimitExceededError(); httpError = new restifyErrors.NotExtendedError(); httpError = new restifyErrors.NetworkAuthenticationRequiredError(); +httpError = new restifyErrors.PayloadTooLargeError(); +httpError = new restifyErrors.UriTooLongError(); +httpError = new restifyErrors.MisdirectedRequestError(); +httpError = new restifyErrors.UnavailableForLegalReasonsError(); +httpError = new restifyErrors.LoopDetectedError(); +httpError = new restifyErrors.NetworkAuthenticationRequiredError(); // RestErrors let restError = new restifyErrors.BadDigestError();