mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Update http-status to 0.2.1 (#8920)
This commit is contained in:
@@ -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;
|
||||
|
||||
Vendored
+5
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user