Committed by
GitHub
Merge pull request #1053 from Romavic/master
Added another status codes, on class htt_status.dart ...
Showing
1 changed file
with
5 additions
and
0 deletions
1 | class HttpStatus { | 1 | class HttpStatus { |
2 | HttpStatus(this.code); | 2 | HttpStatus(this.code); |
3 | + | ||
3 | final int code; | 4 | final int code; |
4 | 5 | ||
5 | static const int continue_ = 100; | 6 | static const int continue_ = 100; |
6 | static const int switchingProtocols = 101; | 7 | static const int switchingProtocols = 101; |
7 | static const int processing = 102; | 8 | static const int processing = 102; |
9 | + static const int earlyHints = 103; | ||
8 | static const int ok = 200; | 10 | static const int ok = 200; |
9 | static const int created = 201; | 11 | static const int created = 201; |
10 | static const int accepted = 202; | 12 | static const int accepted = 202; |
@@ -22,6 +24,7 @@ class HttpStatus { | @@ -22,6 +24,7 @@ class HttpStatus { | ||
22 | static const int seeOther = 303; | 24 | static const int seeOther = 303; |
23 | static const int notModified = 304; | 25 | static const int notModified = 304; |
24 | static const int useProxy = 305; | 26 | static const int useProxy = 305; |
27 | + static const int switchProxy = 306; | ||
25 | static const int temporaryRedirect = 307; | 28 | static const int temporaryRedirect = 307; |
26 | static const int permanentRedirect = 308; | 29 | static const int permanentRedirect = 308; |
27 | static const int badRequest = 400; | 30 | static const int badRequest = 400; |
@@ -42,10 +45,12 @@ class HttpStatus { | @@ -42,10 +45,12 @@ class HttpStatus { | ||
42 | static const int unsupportedMediaType = 415; | 45 | static const int unsupportedMediaType = 415; |
43 | static const int requestedRangeNotSatisfiable = 416; | 46 | static const int requestedRangeNotSatisfiable = 416; |
44 | static const int expectationFailed = 417; | 47 | static const int expectationFailed = 417; |
48 | + static const int imATeapot = 418; | ||
45 | static const int misdirectedRequest = 421; | 49 | static const int misdirectedRequest = 421; |
46 | static const int unprocessableEntity = 422; | 50 | static const int unprocessableEntity = 422; |
47 | static const int locked = 423; | 51 | static const int locked = 423; |
48 | static const int failedDependency = 424; | 52 | static const int failedDependency = 424; |
53 | + static const int tooEarly = 425; | ||
49 | static const int upgradeRequired = 426; | 54 | static const int upgradeRequired = 426; |
50 | static const int preconditionRequired = 428; | 55 | static const int preconditionRequired = 428; |
51 | static const int tooManyRequests = 429; | 56 | static const int tooManyRequests = 429; |
-
Please register or login to post a comment