OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_COMMON_NET_HTTP_RETURN_H_ | 5 #ifndef CHROME_COMMON_NET_HTTP_RETURN_H_ |
6 #define CHROME_COMMON_NET_HTTP_RETURN_H_ | 6 #define CHROME_COMMON_NET_HTTP_RETURN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 // TODO(sanjeevr): This has been moved from the sync library so it only | 9 // TODO(sanjeevr): This has been moved from the sync library so it only |
10 // contains a few HTTP return codes. Add more HTTP return codes. | 10 // contains a few HTTP return codes. Add more HTTP return codes. |
11 enum HTTPReturnCode { | 11 enum HTTPReturnCode { |
12 RC_REQUEST_OK = 200, | 12 RC_REQUEST_OK = 200, |
| 13 RC_REQUEST_OK_EMPTY_BODY = 204, |
13 RC_BAD_REQUEST = 400, | 14 RC_BAD_REQUEST = 400, |
14 RC_UNAUTHORIZED = 401, | 15 RC_UNAUTHORIZED = 401, |
15 RC_FORBIDDEN = 403, | 16 RC_FORBIDDEN = 403, |
16 RC_UNSUPPORTED_MEDIA_TYPE = 415, | 17 RC_UNSUPPORTED_MEDIA_TYPE = 415, |
17 RC_INTERNAL_SERVER_ERROR = 500, | 18 RC_INTERNAL_SERVER_ERROR = 500, |
18 }; | 19 }; |
19 | 20 |
20 #endif // CHROME_COMMON_NET_HTTP_RETURN_H_ | 21 #endif // CHROME_COMMON_NET_HTTP_RETURN_H_ |
OLD | NEW |