Update http-status to 0.2.1 (#8920)

This commit is contained in:
Jan Žák
2016-04-12 23:22:23 +09:00
committed by Masahiro Wakame
parent e684481e0c
commit f5b469b012
2 changed files with 9 additions and 1 deletions
+4
View File
@@ -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;
+5 -1
View File
@@ -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 <https://github.com/misak113/>
// 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;