forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhttp-status-tests.ts
91 lines (86 loc) · 2.4 KB
/
http-status-tests.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/// <reference path="http-status.d.ts" />
import httpStatus = require('http-status');
var str: string;
var nmr: number;
str = httpStatus[100];
str = httpStatus[101];
str = httpStatus[200];
str = httpStatus[201];
str = httpStatus[202];
str = httpStatus[203];
str = httpStatus[204];
str = httpStatus[205];
str = httpStatus[206];
str = httpStatus[300];
str = httpStatus[301];
str = httpStatus[302];
str = httpStatus[303];
str = httpStatus[304];
str = httpStatus[305];
str = httpStatus[307];
str = httpStatus[400];
str = httpStatus[401];
str = httpStatus[402];
str = httpStatus[403];
str = httpStatus[404];
str = httpStatus[405];
str = httpStatus[406];
str = httpStatus[407];
str = httpStatus[408];
str = httpStatus[409];
str = httpStatus[410];
str = httpStatus[411];
str = httpStatus[412];
str = httpStatus[413];
str = httpStatus[414];
str = httpStatus[415];
str = httpStatus[416];
str = httpStatus[417];
str = httpStatus[429];
str = httpStatus[500];
str = httpStatus[501];
str = httpStatus[502];
str = httpStatus[503];
str = httpStatus[504];
str = httpStatus[505];
nmr = httpStatus.CONTINUE;
nmr = httpStatus.SWITCHING_PROTOCOLS;
nmr = httpStatus.OK;
nmr = httpStatus.CREATED;
nmr = httpStatus.ACCEPTED;
nmr = httpStatus.NON_AUTHORITATIVE_INFORMATION;
nmr = httpStatus.NO_CONTENT;
nmr = httpStatus.RESET_CONTENT;
nmr = httpStatus.PARTIAL_CONTENT;
nmr = httpStatus.MULTIPLE_CHOICES;
nmr = httpStatus.MOVED_PERMANENTLY;
nmr = httpStatus.FOUND;
nmr = httpStatus.SEE_OTHER;
nmr = httpStatus.NOT_MODIFIED;
nmr = httpStatus.USE_PROXY;
nmr = httpStatus.TEMPORARY_REDIRECT;
nmr = httpStatus.BAD_REQUEST;
nmr = httpStatus.UNAUTHORIZED;
nmr = httpStatus.PAYMENT_REQUIRED;
nmr = httpStatus.FORBIDDEN;
nmr = httpStatus.NOT_FOUND;
nmr = httpStatus.METHOD_NOT_ALLOWED;
nmr = httpStatus.NOT_ACCEPTABLE;
nmr = httpStatus.PROXY_AUTHENTICATION_REQUIRED;
nmr = httpStatus.REQUEST_TIMEOUT;
nmr = httpStatus.CONFLICT;
nmr = httpStatus.GONE;
nmr = httpStatus.LENGTH_REQUIRED;
nmr = httpStatus.PRECONDITION_FAILED;
nmr = httpStatus.REQUEST_ENTITY_TOO_LARGE;
nmr = httpStatus.REQUEST_URI_TOO_LONG;
nmr = httpStatus.UNSUPPORTED_MEDIA_TYPE;
nmr = httpStatus.REQUESTED_RANGE_NOT_SATISFIABLE;
nmr = httpStatus.EXPECTATION_FAILED;
nmr = httpStatus.TOO_MANY_REQUESTS;
nmr = httpStatus.INTERNAL_SERVER_ERROR;
nmr = httpStatus.NOT_IMPLEMENTED;
nmr = httpStatus.BAD_GATEWAY;
nmr = httpStatus.SERVICE_UNAVAILABLE;
nmr = httpStatus.GATEWAY_TIMEOUT;
nmr = httpStatus.HTTP_VERSION_NOT_SUPPORTED;