OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
| 5 part of dart.io; |
| 6 |
5 /** | 7 /** |
6 * HTTP status codes. | 8 * HTTP status codes. |
7 */ | 9 */ |
8 abstract class HttpStatus { | 10 abstract class HttpStatus { |
9 static const int CONTINUE = 100; | 11 static const int CONTINUE = 100; |
10 static const int SWITCHING_PROTOCOLS = 101; | 12 static const int SWITCHING_PROTOCOLS = 101; |
11 static const int OK = 200; | 13 static const int OK = 200; |
12 static const int CREATED = 201; | 14 static const int CREATED = 201; |
13 static const int ACCEPTED = 202; | 15 static const int ACCEPTED = 202; |
14 static const int NON_AUTHORITATIVE_INFORMATION = 203; | 16 static const int NON_AUTHORITATIVE_INFORMATION = 203; |
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1157 class RedirectLimitExceededException extends RedirectException { | 1159 class RedirectLimitExceededException extends RedirectException { |
1158 const RedirectLimitExceededException(List<RedirectInfo> redirects) | 1160 const RedirectLimitExceededException(List<RedirectInfo> redirects) |
1159 : super("Redirect limit exceeded", redirects); | 1161 : super("Redirect limit exceeded", redirects); |
1160 } | 1162 } |
1161 | 1163 |
1162 | 1164 |
1163 class RedirectLoopException extends RedirectException { | 1165 class RedirectLoopException extends RedirectException { |
1164 const RedirectLoopException(List<RedirectInfo> redirects) | 1166 const RedirectLoopException(List<RedirectInfo> redirects) |
1165 : super("Redirect loop detected", redirects); | 1167 : super("Redirect loop detected", redirects); |
1166 } | 1168 } |
OLD | NEW |