Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: net/http/http_status_code_list.h

Issue 16268017: GTTF: convert some tests in chrome to use EmbeddedTestServer patch nr 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/http/http_status_code.cc ('k') | net/test/embedded_test_server/embedded_test_server.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // This file intentionally does not have header guards, it's included 5 // This file intentionally does not have header guards, it's included
6 // inside a macro to generate enum. 6 // inside a macro to generate enum.
7 // 7 //
8 // This file contains the list of HTTP status codes. Taken from IANA HTTP Status 8 // This file contains the list of HTTP status codes. Taken from IANA HTTP Status
9 // Code Registry. 9 // Code Registry.
10 // http://www.iana.org/assignments/http-status-codes/http-status-codes.xml 10 // http://www.iana.org/assignments/http-status-codes/http-status-codes.xml
(...skipping 17 matching lines...) Expand all
28 28
29 // Redirection 3xx 29 // Redirection 3xx
30 HTTP_STATUS(MULTIPLE_CHOICES, 300, "Multiple Choices") 30 HTTP_STATUS(MULTIPLE_CHOICES, 300, "Multiple Choices")
31 HTTP_STATUS(MOVED_PERMANENTLY, 301, "Moved Permanently") 31 HTTP_STATUS(MOVED_PERMANENTLY, 301, "Moved Permanently")
32 HTTP_STATUS(FOUND, 302, "Found") 32 HTTP_STATUS(FOUND, 302, "Found")
33 HTTP_STATUS(SEE_OTHER, 303, "See Other") 33 HTTP_STATUS(SEE_OTHER, 303, "See Other")
34 HTTP_STATUS(NOT_MODIFIED, 304, "Not Modified") 34 HTTP_STATUS(NOT_MODIFIED, 304, "Not Modified")
35 HTTP_STATUS(USE_PROXY, 305, "Use Proxy") 35 HTTP_STATUS(USE_PROXY, 305, "Use Proxy")
36 // 306 is no longer used. 36 // 306 is no longer used.
37 HTTP_STATUS(TEMPORARY_REDIRECT, 307, "Temporary Redirect") 37 HTTP_STATUS(TEMPORARY_REDIRECT, 307, "Temporary Redirect")
38 HTTP_STATUS(PERMANENT_REDIRECT, 308, "Permanent Redirect")
Ryan Sleevi 2013/06/24 18:32:34 This seems like it should be in its own CL. I'm ha
Paweł Hajdan Jr. 2013/06/24 19:23:43 Embedded HTTP Server uses this list to construct H
38 39
39 // Client error 4xx 40 // Client error 4xx
40 HTTP_STATUS(BAD_REQUEST, 400, "Bad Request") 41 HTTP_STATUS(BAD_REQUEST, 400, "Bad Request")
41 HTTP_STATUS(UNAUTHORIZED, 401, "Unauthorized") 42 HTTP_STATUS(UNAUTHORIZED, 401, "Unauthorized")
42 HTTP_STATUS(PAYMENT_REQUIRED, 402, "Payment Required") 43 HTTP_STATUS(PAYMENT_REQUIRED, 402, "Payment Required")
43 HTTP_STATUS(FORBIDDEN, 403, "Forbidden") 44 HTTP_STATUS(FORBIDDEN, 403, "Forbidden")
44 HTTP_STATUS(NOT_FOUND, 404, "Not Found") 45 HTTP_STATUS(NOT_FOUND, 404, "Not Found")
45 HTTP_STATUS(METHOD_NOT_ALLOWED, 405, "Method Not Allowed") 46 HTTP_STATUS(METHOD_NOT_ALLOWED, 405, "Method Not Allowed")
46 HTTP_STATUS(NOT_ACCEPTABLE, 406, "Not Acceptable") 47 HTTP_STATUS(NOT_ACCEPTABLE, 406, "Not Acceptable")
47 HTTP_STATUS(PROXY_AUTHENTICATION_REQUIRED, 407, "Proxy Authentication Required") 48 HTTP_STATUS(PROXY_AUTHENTICATION_REQUIRED, 407, "Proxy Authentication Required")
48 HTTP_STATUS(REQUEST_TIMEOUT, 408, "Request Timeout") 49 HTTP_STATUS(REQUEST_TIMEOUT, 408, "Request Timeout")
49 HTTP_STATUS(CONFLICT, 409, "Conflict") 50 HTTP_STATUS(CONFLICT, 409, "Conflict")
50 HTTP_STATUS(GONE, 410, "Gone") 51 HTTP_STATUS(GONE, 410, "Gone")
51 HTTP_STATUS(LENGTH_REQUIRED, 411, "Length Required") 52 HTTP_STATUS(LENGTH_REQUIRED, 411, "Length Required")
52 HTTP_STATUS(PRECONDITION_FAILED, 412, "Precondition Failed") 53 HTTP_STATUS(PRECONDITION_FAILED, 412, "Precondition Failed")
53 HTTP_STATUS(REQUEST_ENTITY_TOO_LARGE, 413, "Request Entity Too Large") 54 HTTP_STATUS(REQUEST_ENTITY_TOO_LARGE, 413, "Request Entity Too Large")
54 HTTP_STATUS(REQUEST_URI_TOO_LONG, 414, "Request-URI Too Long") 55 HTTP_STATUS(REQUEST_URI_TOO_LONG, 414, "Request-URI Too Long")
55 HTTP_STATUS(UNSUPPORTED_MEDIA_TYPE, 415, "Unsupported Media Type") 56 HTTP_STATUS(UNSUPPORTED_MEDIA_TYPE, 415, "Unsupported Media Type")
56 HTTP_STATUS(REQUESTED_RANGE_NOT_SATISFIABLE, 416, 57 HTTP_STATUS(REQUESTED_RANGE_NOT_SATISFIABLE, 416,
57 "Requested Range Not Satisfiable") 58 "Requested Range Not Satisfiable")
58 HTTP_STATUS(EXPECTATION_FAILED, 417, "Expectation Failed") 59 HTTP_STATUS(EXPECTATION_FAILED, 417, "Expectation Failed")
59 60
60 // Server error 5xx 61 // Server error 5xx
61 HTTP_STATUS(INTERNAL_SERVER_ERROR, 500, "Internal Server Error") 62 HTTP_STATUS(INTERNAL_SERVER_ERROR, 500, "Internal Server Error")
62 HTTP_STATUS(NOT_IMPLEMENTED, 501, "Not Implemented") 63 HTTP_STATUS(NOT_IMPLEMENTED, 501, "Not Implemented")
63 HTTP_STATUS(BAD_GATEWAY, 502, "Bad Gateway") 64 HTTP_STATUS(BAD_GATEWAY, 502, "Bad Gateway")
64 HTTP_STATUS(SERVICE_UNAVAILABLE, 503, "Service Unavailable") 65 HTTP_STATUS(SERVICE_UNAVAILABLE, 503, "Service Unavailable")
65 HTTP_STATUS(GATEWAY_TIMEOUT, 504, "Gateway Timeout") 66 HTTP_STATUS(GATEWAY_TIMEOUT, 504, "Gateway Timeout")
66 HTTP_STATUS(VERSION_NOT_SUPPORTED, 505, "HTTP Version Not Supported") 67 HTTP_STATUS(VERSION_NOT_SUPPORTED, 505, "HTTP Version Not Supported")
OLDNEW
« no previous file with comments | « net/http/http_status_code.cc ('k') | net/test/embedded_test_server/embedded_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698