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 | |
7 /** | 5 /** |
8 * HTTP status codes. | 6 * HTTP status codes. |
9 */ | 7 */ |
10 abstract class HttpStatus { | 8 abstract class HttpStatus { |
11 static const int CONTINUE = 100; | 9 static const int CONTINUE = 100; |
12 static const int SWITCHING_PROTOCOLS = 101; | 10 static const int SWITCHING_PROTOCOLS = 101; |
13 static const int OK = 200; | 11 static const int OK = 200; |
14 static const int CREATED = 201; | 12 static const int CREATED = 201; |
15 static const int ACCEPTED = 202; | 13 static const int ACCEPTED = 202; |
16 static const int NON_AUTHORITATIVE_INFORMATION = 203; | 14 static const int NON_AUTHORITATIVE_INFORMATION = 203; |
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 class RedirectLimitExceededException extends RedirectException { | 1106 class RedirectLimitExceededException extends RedirectException { |
1109 const RedirectLimitExceededException(List<RedirectInfo> redirects) | 1107 const RedirectLimitExceededException(List<RedirectInfo> redirects) |
1110 : super("Redirect limit exceeded", redirects); | 1108 : super("Redirect limit exceeded", redirects); |
1111 } | 1109 } |
1112 | 1110 |
1113 | 1111 |
1114 class RedirectLoopException extends RedirectException { | 1112 class RedirectLoopException extends RedirectException { |
1115 const RedirectLoopException(List<RedirectInfo> redirects) | 1113 const RedirectLoopException(List<RedirectInfo> redirects) |
1116 : super("Redirect loop detected", redirects); | 1114 : super("Redirect loop detected", redirects); |
1117 } | 1115 } |
OLD | NEW |