• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

HttpStatus.h

Go to the documentation of this file.
00001 /**
00002   Licensed to the Apache Software Foundation (ASF) under one
00003   or more contributor license agreements.  See the NOTICE file
00004   distributed with this work for additional information
00005   regarding copyright ownership.  The ASF licenses this file
00006   to you under the Apache License, Version 2.0 (the
00007   "License"); you may not use this file except in compliance
00008   with the License.  You may obtain a copy of the License at
00009 
00010       http://www.apache.org/licenses/LICENSE-2.0
00011 
00012   Unless required by applicable law or agreed to in writing, software
00013   distributed under the License is distributed on an "AS IS" BASIS,
00014   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015   See the License for the specific language governing permissions and
00016   limitations under the License.
00017  */
00018 
00019 /**
00020  * @file HttpStatus.h
00021  * @brief Contains an enumeration and printable strings for Http Status codes.
00022  */
00023 
00024 #pragma once
00025 #ifndef ATSCPPAPI_HTTP_STATUS_H_
00026 #define ATSCPPAPI_HTTP_STATUS_H_
00027 
00028 #include <string>
00029 
00030 namespace atscppapi {
00031 
00032 /**
00033  * An enumeration of all available Http Status Codes.
00034  */
00035 enum HttpStatus
00036 {
00037   HTTP_STATUS_UNKNOWN = 0,
00038 
00039   HTTP_STATUS_CONTINUE = 100,
00040   HTTP_STATUS_SWITCHING_PROTOCOL = 101,
00041 
00042   HTTP_STATUS_OK = 200,
00043   HTTP_STATUS_CREATED = 201,
00044   HTTP_STATUS_ACCEPTED = 202,
00045   HTTP_STATUS_NON_AUTHORITATIVE_INFORMATION = 203,
00046   HTTP_STATUS_NO_CONTENT = 204,
00047   HTTP_STATUS_RESET_CONTENT = 205,
00048   HTTP_STATUS_PARTIAL_CONTENT = 206,
00049   HTTP_STATUS_MULTI_STATUS = 207,
00050   HTTP_STATUS_ALREADY_REPORTED = 208,
00051   HTTP_STATUS_IM_USED = 211,
00052 
00053   HTTP_STATUS_MULTIPLE_CHOICES = 300,
00054   HTTP_STATUS_MOVED_PERMANENTLY = 301,
00055   HTTP_STATUS_MOVED_TEMPORARILY = 302,
00056   HTTP_STATUS_SEE_OTHER = 303,
00057   HTTP_STATUS_NOT_MODIFIED = 304,
00058   HTTP_STATUS_USE_PROXY = 305,
00059   HTTP_STATUS_TEMPORARY_REDIRECT = 307,
00060   HTTP_STATUS_PERMANENT_REDIRECT = 308,
00061 
00062   HTTP_STATUS_BAD_REQUEST = 400,
00063   HTTP_STATUS_UNAUTHORIZED = 401,
00064   HTTP_STATUS_PAYMENT_REQUIRED = 402,
00065   HTTP_STATUS_FORBIDDEN = 403,
00066   HTTP_STATUS_NOT_FOUND = 404,
00067   HTTP_STATUS_METHOD_NOT_ALLOWED = 405,
00068   HTTP_STATUS_NOT_ACCEPTABLE = 406,
00069   HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED = 407,
00070   HTTP_STATUS_REQUEST_TIMEOUT = 408,
00071   HTTP_STATUS_CONFLICT = 409,
00072   HTTP_STATUS_GONE = 410,
00073   HTTP_STATUS_LENGTH_REQUIRED = 411,
00074   HTTP_STATUS_PRECONDITION_FAILED = 412,
00075   HTTP_STATUS_REQUEST_ENTITY_TOO_LARGE = 413,
00076   HTTP_STATUS_REQUEST_URI_TOO_LONG = 414,
00077   HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE = 415,
00078   HTTP_STATUS_REQUESTED_RANGE_NOT_SATISFIABLE = 416,
00079   HTTP_STATUS_EXPECTATION_FAILED = 417,
00080   HTTP_STATUS_UNPROCESSABLE_ENTITY = 422,
00081   HTTP_STATUS_LOCKED = 423,
00082   HTTP_STATUS_FAILED_DEPENDENCY = 424,
00083   HTTP_STATUS_UPGRADE_REQUIRED = 426,
00084   HTTP_STATUS_PRECONDITION_REQUIRED = 428,
00085   HTTP_STATUS_TOO_MANY_REQUESTS = 429,
00086   HTTP_STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE = 431,
00087 
00088   HTTP_STATUS_INTERNAL_SERVER_ERROR = 500,
00089   HTTP_STATUS_NOT_IMPLEMENTED = 501,
00090   HTTP_STATUS_BAD_GATEWAY = 502,
00091   HTTP_STATUS_SERVICE_UNAVAILABLE = 503,
00092   HTTP_STATUS_GATEWAY_TIMEOUT = 504,
00093   HTTP_STATUS_HTTPVER_NOT_SUPPORTED = 505,
00094   HTTP_STATUS_VARIANT_ALSO_NEGOTIATES = 506,
00095   HTTP_STATUS_INSUFFICIENT_STORAGE = 507,
00096   HTTP_STATUS_LOOP_DETECTED = 508,
00097   HTTP_STATUS_NOT_EXTENDED = 510,
00098   HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED = 511
00099 
00100 };
00101 
00102 }
00103 
00104 #endif

Generated by  doxygen 1.7.1