Skip to content

Commit 87c06ea

Browse files
committed
fix: made http status code to a number range
1 parent 1b77c32 commit 87c06ea

File tree

1 file changed

+3
-192
lines changed

1 file changed

+3
-192
lines changed

definitions/http/data_type/type/http_status_code.json

Lines changed: 3 additions & 192 deletions
Original file line numberDiff line numberDiff line change
@@ -10,198 +10,9 @@
1010
"rules": [
1111
{
1212
"config": {
13-
"ItemOfCollection": {
14-
"items": [
15-
{
16-
"kind": { "StringValue": "100 Continue" }
17-
},
18-
{
19-
"kind": { "StringValue": "101 Switching Protocols" }
20-
},
21-
{
22-
"kind": { "StringValue": "102 Processing" }
23-
},
24-
{
25-
"kind": { "StringValue": "103 Early Hints" }
26-
},
27-
{
28-
"kind": { "StringValue": "200 OK" }
29-
},
30-
{
31-
"kind": { "StringValue": "201 Created" }
32-
},
33-
{
34-
"kind": { "StringValue": "202 Accepted" }
35-
},
36-
{
37-
"kind": { "StringValue": "203 Non-Authoritative Information" }
38-
},
39-
{
40-
"kind": { "StringValue": "204 No Content" }
41-
},
42-
{
43-
"kind": { "StringValue": "205 Reset Content" }
44-
},
45-
{
46-
"kind": { "StringValue": "206 Partial Content" }
47-
},
48-
{
49-
"kind": { "StringValue": "207 Multi-Status" }
50-
},
51-
{
52-
"kind": { "StringValue": "208 Already Reported" }
53-
},
54-
{
55-
"kind": { "StringValue": "226 IM Used" }
56-
},
57-
{
58-
"kind": { "StringValue": "300 Multiple Choices" }
59-
},
60-
{
61-
"kind": { "StringValue": "301 Moved Permanently" }
62-
},
63-
{
64-
"kind": { "StringValue": "302 Found" }
65-
},
66-
{
67-
"kind": { "StringValue": "303 See Other" }
68-
},
69-
{
70-
"kind": { "StringValue": "304 Not Modified" }
71-
},
72-
{
73-
"kind": { "StringValue": "305 Use Proxy" }
74-
},
75-
{
76-
"kind": { "StringValue": "306 Switch Proxy" }
77-
},
78-
{
79-
"kind": { "StringValue": "307 Temporary Redirect" }
80-
},
81-
{
82-
"kind": { "StringValue": "308 Permanent Redirect" }
83-
},
84-
{
85-
"kind": { "StringValue": "400 Bad Request" }
86-
},
87-
{
88-
"kind": { "StringValue": "401 Unauthorized" }
89-
},
90-
{
91-
"kind": { "StringValue": "402 Payment Required" }
92-
},
93-
{
94-
"kind": { "StringValue": "403 Forbidden" }
95-
},
96-
{
97-
"kind": { "StringValue": "404 Not Found" }
98-
},
99-
{
100-
"kind": { "StringValue": "405 Method Not Allowed" }
101-
},
102-
{
103-
"kind": { "StringValue": "406 Not Acceptable" }
104-
},
105-
{
106-
"kind": { "StringValue": "407 Proxy Authentication Required" }
107-
},
108-
{
109-
"kind": { "StringValue": "408 Request Timeout" }
110-
},
111-
{
112-
"kind": { "StringValue": "409 Conflict" }
113-
},
114-
{
115-
"kind": { "StringValue": "410 Gone" }
116-
},
117-
{
118-
"kind": { "StringValue": "411 Length Required" }
119-
},
120-
{
121-
"kind": { "StringValue": "412 Precondition Failed" }
122-
},
123-
{
124-
"kind": { "StringValue": "413 Payload Too Large" }
125-
},
126-
{
127-
"kind": { "StringValue": "414 URI Too Long" }
128-
},
129-
{
130-
"kind": { "StringValue": "415 Unsupported Media Type" }
131-
},
132-
{
133-
"kind": { "StringValue": "416 Range Not Satisfiable" }
134-
},
135-
{
136-
"kind": { "StringValue": "417 Expectation Failed" }
137-
},
138-
{
139-
"kind": { "StringValue": "418 I'm a teapot" }
140-
},
141-
{
142-
"kind": { "StringValue": "421 Misdirected Request" }
143-
},
144-
{
145-
"kind": { "StringValue": "422 Unprocessable Entity" }
146-
},
147-
{
148-
"kind": { "StringValue": "423 Locked" }
149-
},
150-
{
151-
"kind": { "StringValue": "424 Failed Dependency" }
152-
},
153-
{
154-
"kind": { "StringValue": "425 Too Early" }
155-
},
156-
{
157-
"kind": { "StringValue": "426 Upgrade Required" }
158-
},
159-
{
160-
"kind": { "StringValue": "428 Precondition Required" }
161-
},
162-
{
163-
"kind": { "StringValue": "429 Too Many Requests" }
164-
},
165-
{
166-
"kind": { "StringValue": "431 Request Header Fields Too Large" }
167-
},
168-
{
169-
"kind": { "StringValue": "451 Unavailable For Legal Reasons" }
170-
},
171-
{
172-
"kind": { "StringValue": "500 Internal Server Error" }
173-
},
174-
{
175-
"kind": { "StringValue": "501 Not Implemented" }
176-
},
177-
{
178-
"kind": { "StringValue": "502 Bad Gateway" }
179-
},
180-
{
181-
"kind": { "StringValue": "503 Service Unavailable" }
182-
},
183-
{
184-
"kind": { "StringValue": "504 Gateway Timeout" }
185-
},
186-
{
187-
"kind": { "StringValue": "505 HTTP Version Not Supported" }
188-
},
189-
{
190-
"kind": { "StringValue": "506 Variant Also Negotiates" }
191-
},
192-
{
193-
"kind": { "StringValue": "507 Insufficient Storage" }
194-
},
195-
{
196-
"kind": { "StringValue": "508 Loop Detected" }
197-
},
198-
{
199-
"kind": { "StringValue": "510 Not Extended" }
200-
},
201-
{
202-
"kind": { "StringValue": "511 Network Authentication Required" }
203-
}
204-
]
13+
"NumberRange": {
14+
"from": 100,
15+
"to": 599
20516
}
20617
}
20718
}

0 commit comments

Comments
 (0)