Skip to content

Commit f34b4ac

Browse files
committed
fix: status number helper
1 parent c2e97c7 commit f34b4ac

1 file changed

Lines changed: 88 additions & 88 deletions

File tree

src/Http.php

Lines changed: 88 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -7,94 +7,94 @@
77
use Kazemmdev\HttpStatus\Exceptions\UndefinedException;
88

99
/**
10-
* @method static CONTINUE(): int // return 100
11-
* @method static SWITCHING_PROTOCOLS(): int // return 101
12-
* @method static PROCESSING(): int // return 102
13-
* @method static EARLY_HINTS(): int // return 103
14-
* @method static OK(): int // return 200
15-
* @method static CREATED(): int // return 201
16-
* @method static ACCEPTED(): int // return 202
17-
* @method static NON_AUTHORITATIVE_INFORMATION(): int // return 203
18-
* @method static NO_CONTENT(): int // return 204
19-
* @method static RESET_CONTENT(): int // return 205
20-
* @method static PARTIAL_CONTENT(): int // return 206
21-
* @method static MULTI_STATUS(): int // return 207
22-
* @method static ALREADY_REPORTED(): int // return 208
23-
* @method static THIS_IS_FINE(): int // return 218
24-
* @method static IM_USED(): int // return 226
25-
* @method static MULTIPLE_CHOICES(): int // return 300
26-
* @method static MOVED_PERMANENTLY(): int // return 301
27-
* @method static FOUND(): int // return 302
28-
* @method static SEE_OTHER(): int // return 303
29-
* @method static NOT_MODIFIED(): int // return 304
30-
* @method static USE_PROXY(): int // return 305
31-
* @method static TEMPORARY_REDIRECT(): int // return 307
32-
* @method static PERMANENT_REDIRECT(): int // return 308
33-
* @method static BAD_REQUEST(): int // return 400
34-
* @method static UNAUTHORIZED(): int // return 401
35-
* @method static PAYMENT_REQUIRED(): int // return 402
36-
* @method static FORBIDDEN(): int // return 403
37-
* @method static NOT_FOUND(): int // return 404
38-
* @method static METHOD_NOT_ALLOWED(): int // return 405
39-
* @method static NOT_ACCEPTABLE(): int // return 406
40-
* @method static PROXY_AUTHENTICATION_REQUIRED(): int // return 407
41-
* @method static REQUEST_TIMEOUT(): int // return 408
42-
* @method static CONFLICT(): int // return 409
43-
* @method static GONE(): int // return 410
44-
* @method static LENGTH_REQUIRED(): int // return 411
45-
* @method static PRECONDITION_FAILED(): int // return 412
46-
* @method static PAYLOAD_TOO_LARGE(): int // return 413
47-
* @method static URI_TOO_LONG(): int // return 414
48-
* @method static UNSUPPORTED_MEDIA_TYPE(): int // return 415
49-
* @method static RANGE_NOT_SATISFIABLE(): int // return 416
50-
* @method static EXPECTATION_FAILED(): int // return 417
51-
* @method static I_AM_A_TEAPOT(): int // return 418
52-
* @method static PAGE_EXPIRED(): int // return 419
53-
* @method static MISDIRECTED_REQUEST(): int // return 421
54-
* @method static UNPROCESSABLE_ENTITY(): int // return 422
55-
* @method static LOCKED(): int // return 423
56-
* @method static FAILED_DEPENDENCY(): int // return 424
57-
* @method static TOO_EARLY(): int // return 425
58-
* @method static UPGRADE_REQUIRED(): int // return 426
59-
* @method static PRECONDITION_REQUIRED(): int // return 428
60-
* @method static TOO_MANY_REQUESTS(): int // return 429
61-
* @method static REQUEST_HEADER_FIELDS_TOO_LARGE(): int // return 431
62-
* @method static LOGIN_TIME_OUT(): int // return 440
63-
* @method static NO_RESPONSE(): int // return 444
64-
* @method static RETRY_WITH(): int // return 449
65-
* @method static BLOCKED_BY_WINDOWS_PARENTAL_CONTROL(): int // return 450
66-
* @method static UNAVAILABLE_FOR_LEGAL_REASONS(): int // return 451
67-
* @method static CLIENT_CLOSED_THE_CONNECTION(): int // return 460
68-
* @method static X_FORWARDED_FOR_TOO_LARGE(): int // return 463
69-
* @method static REQUEST_HEADER_TOO_LARGE(): int // return 494
70-
* @method static SSL_CERTIFICATE_ERROR(): int // return 495
71-
* @method static SSL_CERTIFICATE_REQUIRED(): int // return 496
72-
* @method static HTTP_REQUEST_SENT_TO_HTTPS_PORT(): int // return 497
73-
* @method static INVALID_TOKEN(): int // return 498
74-
* @method static TOKEN_REQUIRED(): int // return 499
75-
* @method static INTERNAL_SERVER_ERROR(): int // return 500
76-
* @method static NOT_IMPLEMENTED(): int // return 501
77-
* @method static BAD_GATEWAY(): int // return 502
78-
* @method static SERVICE_UNAVAILABLE(): int // return 503
79-
* @method static GATEWAY_TIMEOUT(): int // return 504
80-
* @method static HTTP_VERSION_NOT_SUPPORTED(): int // return 505
81-
* @method static VARIANT_ALSO_NEGOTIATES(): int // return 506
82-
* @method static INSUFFICIENT_STORAGE(): int // return 507
83-
* @method static LOOP_DETECTED(): int // return 508
84-
* @method static BANDWIDTH_LIMIT_EXCEEDED(): int // return 509
85-
* @method static NOT_EXTENDED(): int // return 510
86-
* @method static NETWORK_AUTHENTICATION_REQUIRED(): int // return 511
87-
* @method static WEB_SERVER_RETURNED_AN_UNKNOWN_ERROR(): int // return 520
88-
* @method static WEB_SERVER_IS_DOWN(): int // return 521
89-
* @method static CONNECTION_TIMED_OUT(): int // return 522
90-
* @method static ORIGIN_IS_UNREACHABLE(): int // return 523
91-
* @method static A_TIMEOUT_OCCURRED(): int // return 524
92-
* @method static SSL_HANDSHAKE_FAILED(): int // return 525
93-
* @method static INVALID_SSL_CERTIFICATE(): int // return 526
94-
* @method static RAILGUN_ERROR(): int // return 527
95-
* @method static SITE_IS_OVERLOADED(): int // return 529
96-
* @method static SITE_IS_FROZEN(): int // return 530
97-
* @method static NETWORK_READ_TIMEOUT_ERROR(): int // return 598
10+
* @method static CONTINUE(): int[100]
11+
* @method static SWITCHING_PROTOCOLS(): int[101]
12+
* @method static PROCESSING(): int[102]
13+
* @method static EARLY_HINTS(): int[103]
14+
* @method static OK(): int[200]
15+
* @method static CREATED(): int[201]
16+
* @method static ACCEPTED(): int[202]
17+
* @method static NON_AUTHORITATIVE_INFORMATION(): int[203]
18+
* @method static NO_CONTENT(): int[204]
19+
* @method static RESET_CONTENT(): int[205]
20+
* @method static PARTIAL_CONTENT(): int[206]
21+
* @method static MULTI_STATUS(): int[207]
22+
* @method static ALREADY_REPORTED(): int[208]
23+
* @method static THIS_IS_FINE(): int[218]
24+
* @method static IM_USED(): int[226]
25+
* @method static MULTIPLE_CHOICES(): int[300]
26+
* @method static MOVED_PERMANENTLY(): int[301]
27+
* @method static FOUND(): int[302]
28+
* @method static SEE_OTHER(): int[303]
29+
* @method static NOT_MODIFIED(): int[304]
30+
* @method static USE_PROXY(): int[305]
31+
* @method static TEMPORARY_REDIRECT(): int[307]
32+
* @method static PERMANENT_REDIRECT(): int[308]
33+
* @method static BAD_REQUEST(): int[400]
34+
* @method static UNAUTHORIZED(): int[401]
35+
* @method static PAYMENT_REQUIRED(): int[402]
36+
* @method static FORBIDDEN(): int[403]
37+
* @method static NOT_FOUND(): int[404]
38+
* @method static METHOD_NOT_ALLOWED(): int[405]
39+
* @method static NOT_ACCEPTABLE(): int[406]
40+
* @method static PROXY_AUTHENTICATION_REQUIRED(): int[407]
41+
* @method static REQUEST_TIMEOUT(): int[408]
42+
* @method static CONFLICT(): int[409]
43+
* @method static GONE(): int[410]
44+
* @method static LENGTH_REQUIRED(): int[411]
45+
* @method static PRECONDITION_FAILED(): int[412]
46+
* @method static PAYLOAD_TOO_LARGE(): int[413]
47+
* @method static URI_TOO_LONG(): int[414]
48+
* @method static UNSUPPORTED_MEDIA_TYPE(): int[415]
49+
* @method static RANGE_NOT_SATISFIABLE(): int[416]
50+
* @method static EXPECTATION_FAILED(): int[417]
51+
* @method static I_AM_A_TEAPOT(): int[418]
52+
* @method static PAGE_EXPIRED(): int[419]
53+
* @method static MISDIRECTED_REQUEST(): int[421]
54+
* @method static UNPROCESSABLE_ENTITY(): int[422]
55+
* @method static LOCKED(): int[423]
56+
* @method static FAILED_DEPENDENCY(): int[424]
57+
* @method static TOO_EARLY(): int[425]
58+
* @method static UPGRADE_REQUIRED(): int[426]
59+
* @method static PRECONDITION_REQUIRED(): int[428]
60+
* @method static TOO_MANY_REQUESTS(): int[429]
61+
* @method static REQUEST_HEADER_FIELDS_TOO_LARGE(): int[431]
62+
* @method static LOGIN_TIME_OUT(): int[440]
63+
* @method static NO_RESPONSE(): int[444]
64+
* @method static RETRY_WITH(): int[449]
65+
* @method static BLOCKED_BY_WINDOWS_PARENTAL_CONTROL(): int[450]
66+
* @method static UNAVAILABLE_FOR_LEGAL_REASONS(): int[451]
67+
* @method static CLIENT_CLOSED_THE_CONNECTION(): int[460]
68+
* @method static X_FORWARDED_FOR_TOO_LARGE(): int[463]
69+
* @method static REQUEST_HEADER_TOO_LARGE(): int[494]
70+
* @method static SSL_CERTIFICATE_ERROR(): int[495]
71+
* @method static SSL_CERTIFICATE_REQUIRED(): int[496]
72+
* @method static HTTP_REQUEST_SENT_TO_HTTPS_PORT(): int[497]
73+
* @method static INVALID_TOKEN(): int[498]
74+
* @method static TOKEN_REQUIRED(): int[499]
75+
* @method static INTERNAL_SERVER_ERROR(): int[500]
76+
* @method static NOT_IMPLEMENTED(): int[501]
77+
* @method static BAD_GATEWAY(): int[502]
78+
* @method static SERVICE_UNAVAILABLE(): int[503]
79+
* @method static GATEWAY_TIMEOUT(): int[504]
80+
* @method static HTTP_VERSION_NOT_SUPPORTED(): int[505]
81+
* @method static VARIANT_ALSO_NEGOTIATES(): int[506]
82+
* @method static INSUFFICIENT_STORAGE(): int[507]
83+
* @method static LOOP_DETECTED(): int[508]
84+
* @method static BANDWIDTH_LIMIT_EXCEEDED(): int[509]
85+
* @method static NOT_EXTENDED(): int[510]
86+
* @method static NETWORK_AUTHENTICATION_REQUIRED(): int[511]
87+
* @method static WEB_SERVER_RETURNED_AN_UNKNOWN_ERROR(): int[520]
88+
* @method static WEB_SERVER_IS_DOWN(): int[521]
89+
* @method static CONNECTION_TIMED_OUT(): int[522]
90+
* @method static ORIGIN_IS_UNREACHABLE(): int[523]
91+
* @method static A_TIMEOUT_OCCURRED(): int[524]
92+
* @method static SSL_HANDSHAKE_FAILED(): int[525]
93+
* @method static INVALID_SSL_CERTIFICATE(): int[526]
94+
* @method static RAILGUN_ERROR(): int[527]
95+
* @method static SITE_IS_OVERLOADED(): int[529]
96+
* @method static SITE_IS_FROZEN(): int[530]
97+
* @method static NETWORK_READ_TIMEOUT_ERROR(): int[598]
9898
*/
9999
enum Http: int
100100
{

0 commit comments

Comments
 (0)