mirror of
https://github.com/dart-lang/sdk
synced 2024-10-01 19:19:16 +00:00
Update http status codes
Closes #34946 https://github.com/dart-lang/sdk/pull/34946 GitOrigin-RevId: 1ceac033effa8edea93d985e03aecce0ed833aea Change-Id: Ia9580c131446ba41feacb889d7ff229f6f966821 Reviewed-on: https://dart-review.googlesource.com/c/81741 Reviewed-by: Zach Anderson <zra@google.com> Commit-Queue: Zach Anderson <zra@google.com>
This commit is contained in:
parent
48d8b32e2a
commit
fa3df86c5f
|
@ -1,5 +1,8 @@
|
|||
## 2.1.0-dev.XX.0
|
||||
|
||||
#### `dart:io`
|
||||
Added new HTTP status codes.
|
||||
|
||||
#### `dart:html`
|
||||
Fixed Service Workers and any Promise/Future API with a Dictionary parameter.
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@ part 'websocket_impl.dart';
|
|||
abstract class HttpStatus {
|
||||
static const int continue_ = 100;
|
||||
static const int switchingProtocols = 101;
|
||||
static const int processing = 102;
|
||||
static const int ok = 200;
|
||||
static const int created = 201;
|
||||
static const int accepted = 202;
|
||||
|
@ -43,6 +44,9 @@ abstract class HttpStatus {
|
|||
static const int noContent = 204;
|
||||
static const int resetContent = 205;
|
||||
static const int partialContent = 206;
|
||||
static const int multiStatus = 207;
|
||||
static const int alreadyReported = 208;
|
||||
static const int imUsed = 226;
|
||||
static const int multipleChoices = 300;
|
||||
static const int movedPermanently = 301;
|
||||
static const int found = 302;
|
||||
|
@ -51,6 +55,7 @@ abstract class HttpStatus {
|
|||
static const int notModified = 304;
|
||||
static const int useProxy = 305;
|
||||
static const int temporaryRedirect = 307;
|
||||
static const int permanentRedirect = 308;
|
||||
static const int badRequest = 400;
|
||||
static const int unauthorized = 401;
|
||||
static const int paymentRequired = 402;
|
||||
|
@ -69,13 +74,28 @@ abstract class HttpStatus {
|
|||
static const int unsupportedMediaType = 415;
|
||||
static const int requestedRangeNotSatisfiable = 416;
|
||||
static const int expectationFailed = 417;
|
||||
static const int misdirectedRequest = 421;
|
||||
static const int unprocessableEntity = 422;
|
||||
static const int locked = 423;
|
||||
static const int failedDependency = 424;
|
||||
static const int upgradeRequired = 426;
|
||||
static const int preconditionRequired = 428;
|
||||
static const int tooManyRequests = 429;
|
||||
static const int requestHeaderFieldsTooLarge = 431;
|
||||
static const int connectionClosedWithoutResponse = 444;
|
||||
static const int unavailableForLegalReasons = 451;
|
||||
static const int clientClosedRequest = 499;
|
||||
static const int internalServerError = 500;
|
||||
static const int notImplemented = 501;
|
||||
static const int badGateway = 502;
|
||||
static const int serviceUnavailable = 503;
|
||||
static const int gatewayTimeout = 504;
|
||||
static const int httpVersionNotSupported = 505;
|
||||
static const int variantAlsoNegotiates = 506;
|
||||
static const int insufficientStorage = 507;
|
||||
static const int loopDetected = 508;
|
||||
static const int notExtended = 510;
|
||||
static const int networkAuthenticationRequired = 511;
|
||||
// Client generated status code.
|
||||
static const int networkConnectTimeoutError = 599;
|
||||
|
||||
|
|
Loading…
Reference in a new issue