meta: adjust doc comments for http.d.ts

This commit is contained in:
Xymorot 2020-08-06 23:46:06 +02:00
parent ae30e504e6
commit 19c6807ef0
1 changed files with 3 additions and 5 deletions

8
types/http.d.ts vendored
View File

@ -1,10 +1,11 @@
/**
* @see https://tools.ietf.org/html/rfc7231#section-6.1
*/
declare const enum HttpCode {
// 100
CONTINUE = 100,
SWITCHING_PROTOCOLS = 101,
PROCESSING = 102,
// 200
OK = 200,
CREATED = 201,
ACCEPTED = 202,
@ -14,7 +15,6 @@ declare const enum HttpCode {
PARTIAL_CONTENT = 206,
MULTI_STATUS = 207,
// 300
MULTIPLE_CHOICES = 300,
MOVED_PERMANENTLY = 301,
MOVED_TEMPORARILY = 302,
@ -24,7 +24,6 @@ declare const enum HttpCode {
TEMPORARY_REDIRECT = 307,
PERMANENT_REDIRECT = 308,
// 400
BAD_REQUEST = 400,
UNAUTHORIZED = 401,
PAYMENT_REQUIRED = 402,
@ -53,7 +52,6 @@ declare const enum HttpCode {
TOO_MANY_REQUESTS = 429,
REQUEST_HEADER_FIELDS_TOO_LARGE = 431,
// 500
INTERNAL_SERVER_ERROR = 500,
NOT_IMPLEMENTED = 501,
BAD_GATEWAY = 502,