RESTinio

restinio::status_code Namespace Reference

## Variables
RFC 2616 status code list.
Codes defined by RFC 2616: https://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1.1.
constexpr http_status_code_t | continue_ { 100 }
constexpr http_status_code_t | switching_protocols { 101 }
constexpr http_status_code_t | ok { 200 }
constexpr http_status_code_t | created { 201 }
constexpr http_status_code_t | accepted { 202 }
constexpr http_status_code_t | non_authoritative_information { 203 }
constexpr http_status_code_t | no_content { 204 }
constexpr http_status_code_t | reset_content { 205 }
constexpr http_status_code_t | partial_content { 206 }
constexpr http_status_code_t | multiple_choices { 300 }
constexpr http_status_code_t | moved_permanently { 301 }
constexpr http_status_code_t | found { 302 }
constexpr http_status_code_t | see_other { 303 }
constexpr http_status_code_t | not_modified { 304 }
constexpr http_status_code_t | use_proxy { 305 }
constexpr http_status_code_t | temporary_redirect { 307 }
constexpr http_status_code_t | bad_request { 400 }
constexpr http_status_code_t | unauthorized { 401 }
constexpr http_status_code_t | payment_required { 402 }
constexpr http_status_code_t | forbidden { 403 }
constexpr http_status_code_t | not_found { 404 }
constexpr http_status_code_t | method_not_allowed { 405 }
constexpr http_status_code_t | not_acceptable { 406 }
constexpr http_status_code_t | proxy_authentication_required { 407 }
constexpr http_status_code_t | request_time_out { 408 }
constexpr http_status_code_t | conflict { 409 }
constexpr http_status_code_t | gone { 410 }
constexpr http_status_code_t | length_required { 411 }
constexpr http_status_code_t | precondition_failed { 412 }
constexpr http_status_code_t | payload_too_large { 413 }
constexpr http_status_code_t | uri_too_long { 414 }
constexpr http_status_code_t | unsupported_media_type { 415 }
constexpr http_status_code_t | requested_range_not_satisfiable { 416 }
constexpr http_status_code_t | expectation_failed { 417 }
constexpr http_status_code_t | internal_server_error { 500 }
constexpr http_status_code_t | not_implemented { 501 }
constexpr http_status_code_t | bad_gateway { 502 }
constexpr http_status_code_t | service_unavailable { 503 }
constexpr http_status_code_t | gateway_time_out { 504 }
constexpr http_status_code_t | http_version_not_supported { 505 }
Additional status codes.
Codes not covered with RFC 2616.
constexpr http_status_code_t | permanent_redirect { 308 }
constexpr http_status_code_t | processing { 102 }
constexpr http_status_code_t | multi_status { 207 }
constexpr http_status_code_t | unprocessable_entity { 422 }
constexpr http_status_code_t | locked { 423 }
constexpr http_status_code_t | failed_dependency { 424 }
constexpr http_status_code_t | insufficient_storage { 507 }
constexpr http_status_code_t | precondition_required { 428 }
constexpr http_status_code_t | too_many_requests { 429 }
constexpr http_status_code_t | request_header_fields_too_large { 431 }
constexpr http_status_code_t | network_authentication_required { 511 }

## Variable Documentation

## ◆ accepted

constexpr http_status_code_t restinio::status_code::accepted { 202 }
| constexpr

Definition at line 2045 of file http_headers.hpp.

## ◆ bad_gateway

constexpr http_status_code_t restinio::status_code::bad_gateway { 502 }
| constexpr

Definition at line 2088 of file http_headers.hpp.

## ◆ bad_request

constexpr http_status_code_t restinio::status_code::bad_request { 400 }
| constexpr

Definition at line 2057 of file http_headers.hpp.

## ◆ conflict

constexpr http_status_code_t restinio::status_code::conflict { 409 }
| constexpr

Definition at line 2066 of file http_headers.hpp.

## ◆ continue_

constexpr http_status_code_t restinio::status_code::continue_ { 100 }
| constexpr

Definition at line 2040 of file http_headers.hpp.

## ◆ created

constexpr http_status_code_t restinio::status_code::created { 201 }
| constexpr

Definition at line 2044 of file http_headers.hpp.

## ◆ expectation_failed

constexpr http_status_code_t restinio::status_code::expectation_failed { 417 }
| constexpr

Definition at line 2085 of file http_headers.hpp.

## ◆ failed_dependency

constexpr http_status_code_t restinio::status_code::failed_dependency { 424 }
| constexpr

Definition at line 2106 of file http_headers.hpp.

## ◆ forbidden

constexpr http_status_code_t restinio::status_code::forbidden { 403 }
| constexpr

Definition at line 2060 of file http_headers.hpp.

## ◆ found

constexpr http_status_code_t restinio::status_code::found { 302 }
| constexpr

Definition at line 2052 of file http_headers.hpp.

## ◆ gateway_time_out

constexpr http_status_code_t restinio::status_code::gateway_time_out { 504 }
| constexpr

Definition at line 2090 of file http_headers.hpp.

## ◆ gone

constexpr http_status_code_t restinio::status_code::gone { 410 }
| constexpr

Definition at line 2067 of file http_headers.hpp.

## ◆ http_version_not_supported

constexpr http_status_code_t restinio::status_code::http_version_not_supported { 505 }
| constexpr

Definition at line 2091 of file http_headers.hpp.

## ◆ insufficient_storage

constexpr http_status_code_t restinio::status_code::insufficient_storage { 507 }
| constexpr

Definition at line 2107 of file http_headers.hpp.

## ◆ internal_server_error

constexpr http_status_code_t restinio::status_code::internal_server_error { 500 }
| constexpr

Definition at line 2086 of file http_headers.hpp.

## ◆ length_required

constexpr http_status_code_t restinio::status_code::length_required { 411 }
| constexpr

Definition at line 2068 of file http_headers.hpp.

## ◆ locked

constexpr http_status_code_t restinio::status_code::locked { 423 }
| constexpr

Definition at line 2105 of file http_headers.hpp.

## ◆ method_not_allowed

constexpr http_status_code_t restinio::status_code::method_not_allowed { 405 }
| constexpr

Examples
  sample/express_router/main.cpp.

Definition at line 2062 of file http_headers.hpp.

## ◆ moved_permanently

constexpr http_status_code_t restinio::status_code::moved_permanently { 301 }
| constexpr

Definition at line 2051 of file http_headers.hpp.

## ◆ multi_status

constexpr http_status_code_t restinio::status_code::multi_status { 207 }
| constexpr

Definition at line 2103 of file http_headers.hpp.

## ◆ multiple_choices

constexpr http_status_code_t restinio::status_code::multiple_choices { 300 }
| constexpr

Definition at line 2050 of file http_headers.hpp.

## ◆ network_authentication_required

constexpr http_status_code_t restinio::status_code::network_authentication_required { 511 }
| constexpr

Definition at line 2113 of file http_headers.hpp.

## ◆ no_content

constexpr http_status_code_t restinio::status_code::no_content { 204 }
| constexpr

Definition at line 2047 of file http_headers.hpp.

## ◆ non_authoritative_information

constexpr http_status_code_t restinio::status_code::non_authoritative_information { 203 }
| constexpr

Definition at line 2046 of file http_headers.hpp.

## ◆ not_acceptable

constexpr http_status_code_t restinio::status_code::not_acceptable { 406 }
| constexpr

Definition at line 2063 of file http_headers.hpp.

## ◆ not_found

constexpr http_status_code_t restinio::status_code::not_found { 404 }
| constexpr

Definition at line 2061 of file http_headers.hpp.

## ◆ not_implemented

constexpr http_status_code_t restinio::status_code::not_implemented { 501 }
| constexpr

Definition at line 2087 of file http_headers.hpp.

## ◆ not_modified

constexpr http_status_code_t restinio::status_code::not_modified { 304 }
| constexpr

Definition at line 2054 of file http_headers.hpp.

## ◆ ok

constexpr http_status_code_t restinio::status_code::ok { 200 }
| constexpr

Definition at line 2043 of file http_headers.hpp.

## ◆ partial_content

constexpr http_status_code_t restinio::status_code::partial_content { 206 }
| constexpr

Definition at line 2049 of file http_headers.hpp.

## ◆ payload_too_large

constexpr http_status_code_t restinio::status_code::payload_too_large { 413 }
| constexpr

Definition at line 2074 of file http_headers.hpp.

## ◆ payment_required

constexpr http_status_code_t restinio::status_code::payment_required { 402 }
| constexpr

Definition at line 2059 of file http_headers.hpp.

## ◆ permanent_redirect

constexpr http_status_code_t restinio::status_code::permanent_redirect { 308 }
| constexpr

Definition at line 2099 of file http_headers.hpp.

## ◆ precondition_failed

constexpr http_status_code_t restinio::status_code::precondition_failed { 412 }
| constexpr

Definition at line 2069 of file http_headers.hpp.

## ◆ precondition_required

constexpr http_status_code_t restinio::status_code::precondition_required { 428 }
| constexpr

Definition at line 2110 of file http_headers.hpp.

## ◆ processing

constexpr http_status_code_t restinio::status_code::processing { 102 }
| constexpr

Definition at line 2102 of file http_headers.hpp.

## ◆ proxy_authentication_required

constexpr http_status_code_t restinio::status_code::proxy_authentication_required { 407 }
| constexpr

Definition at line 2064 of file http_headers.hpp.

## ◆ request_header_fields_too_large

constexpr http_status_code_t restinio::status_code::request_header_fields_too_large { 431 }
| constexpr

Definition at line 2112 of file http_headers.hpp.

## ◆ request_time_out

constexpr http_status_code_t restinio::status_code::request_time_out { 408 }
| constexpr

Definition at line 2065 of file http_headers.hpp.

## ◆ requested_range_not_satisfiable

constexpr http_status_code_t restinio::status_code::requested_range_not_satisfiable { 416 }
| constexpr

Definition at line 2084 of file http_headers.hpp.

## ◆ reset_content

constexpr http_status_code_t restinio::status_code::reset_content { 205 }
| constexpr

Definition at line 2048 of file http_headers.hpp.

## ◆ see_other

constexpr http_status_code_t restinio::status_code::see_other { 303 }
| constexpr

Definition at line 2053 of file http_headers.hpp.

## ◆ service_unavailable

constexpr http_status_code_t restinio::status_code::service_unavailable { 503 }
| constexpr

Definition at line 2089 of file http_headers.hpp.

## ◆ switching_protocols

constexpr http_status_code_t restinio::status_code::switching_protocols { 101 }
| constexpr

Definition at line 2042 of file http_headers.hpp.

## ◆ temporary_redirect

constexpr http_status_code_t restinio::status_code::temporary_redirect { 307 }
| constexpr

Definition at line 2056 of file http_headers.hpp.

## ◆ too_many_requests

constexpr http_status_code_t restinio::status_code::too_many_requests { 429 }
| constexpr

Definition at line 2111 of file http_headers.hpp.

## ◆ unauthorized

constexpr http_status_code_t restinio::status_code::unauthorized { 401 }
| constexpr

Definition at line 2058 of file http_headers.hpp.

## ◆ unprocessable_entity

constexpr http_status_code_t restinio::status_code::unprocessable_entity { 422 }
| constexpr

Definition at line 2104 of file http_headers.hpp.

## ◆ unsupported_media_type

constexpr http_status_code_t restinio::status_code::unsupported_media_type { 415 }
| constexpr

Definition at line 2083 of file http_headers.hpp.

## ◆ uri_too_long

constexpr http_status_code_t restinio::status_code::uri_too_long { 414 }
| constexpr

Definition at line 2081 of file http_headers.hpp.

## ◆ use_proxy

constexpr http_status_code_t restinio::status_code::use_proxy { 305 }
| constexpr

Definition at line 2055 of file http_headers.hpp.