in demo_example/http/http_response.hpp [243:280]
std::string_view to_string(status_type status) {
switch (status) {
case status_type::ok:
return response_ok;
case status_type::created:
return response_created;
case status_type::accepted:
return response_accepted;
case status_type::no_content:
return response_no_content;
case status_type::multiple_choices:
return response_multiple_choices;
case status_type::moved_permanently:
return response_moved_permanently;
case status_type::moved_temporarily:
return response_moved_temporarily;
case status_type::not_modified:
return response_not_modified;
case status_type::bad_request:
return response_bad_request;
case status_type::unauthorized:
return response_unauthorized;
case status_type::forbidden:
return response_forbidden;
case status_type::not_found:
return response_not_found;
case status_type::internal_server_error:
return response_internal_server_error;
case status_type::not_implemented:
return response_not_implemented;
case status_type::bad_gateway:
return response_bad_gateway;
case status_type::service_unavailable:
return response_service_unavailable;
default:
return response_internal_server_error;
}
}