From f5b469b012f515428f9643ef31395282481031d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C5=BD=C3=A1k?= Date: Tue, 12 Apr 2016 18:22:23 +0400 Subject: [PATCH] Update http-status to 0.2.1 (#8920) --- http-status/http-status-tests.ts | 4 ++++ http-status/http-status.d.ts | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/http-status/http-status-tests.ts b/http-status/http-status-tests.ts index 8717e99c3..12971578f 100644 --- a/http-status/http-status-tests.ts +++ b/http-status/http-status-tests.ts @@ -39,7 +39,9 @@ str = httpStatus[414]; str = httpStatus[415]; str = httpStatus[416]; str = httpStatus[417]; +str = httpStatus[422]; str = httpStatus[429]; +str = httpStatus[451]; str = httpStatus[500]; str = httpStatus[501]; str = httpStatus[502]; @@ -82,7 +84,9 @@ nmr = httpStatus.REQUEST_URI_TOO_LONG; nmr = httpStatus.UNSUPPORTED_MEDIA_TYPE; nmr = httpStatus.REQUESTED_RANGE_NOT_SATISFIABLE; nmr = httpStatus.EXPECTATION_FAILED; +nmr = httpStatus.UNPROCESSABLE_ENTITY; nmr = httpStatus.TOO_MANY_REQUESTS; +nmr = httpStatus.UNAVAILABLE_FOR_LEGAL_REASONS; nmr = httpStatus.INTERNAL_SERVER_ERROR; nmr = httpStatus.NOT_IMPLEMENTED; nmr = httpStatus.BAD_GATEWAY; diff --git a/http-status/http-status.d.ts b/http-status/http-status.d.ts index d3b12582e..4beb5aed8 100644 --- a/http-status/http-status.d.ts +++ b/http-status/http-status.d.ts @@ -1,4 +1,4 @@ -// Type definitions for http-status v0.1.8 +// Type definitions for http-status v0.2.1 // Project: https://github.com/wdavidw/node-http-status // Definitions by: Michael Zabka // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -38,7 +38,9 @@ interface HttpStatus { 415: string; 416: string; 417: string; + 422: string; 429: string; + 451: string; 500: string; 501: string; 502: string; @@ -79,7 +81,9 @@ interface HttpStatus { UNSUPPORTED_MEDIA_TYPE: number; REQUESTED_RANGE_NOT_SATISFIABLE: number; EXPECTATION_FAILED: number; + UNPROCESSABLE_ENTITY: number; TOO_MANY_REQUESTS: number; + UNAVAILABLE_FOR_LEGAL_REASONS: number; INTERNAL_SERVER_ERROR: number; NOT_IMPLEMENTED: number; BAD_GATEWAY: number;