HTTP Status Codes using unordered_map (C++11)

March 14, 2016 waitman 0

std::unordered_map<long,std::string> http_status_codes; http_status_codes.insert(std::make_pair<long,std::string>(100L, “100 Continue”)); http_status_codes.insert(std::make_pair<long,std::string>(101L, “101 Switching Protocols”)); http_status_codes.insert(std::make_pair<long,std::string>(102L, “102 Processing”)); http_status_codes.insert(std::make_pair<long,std::string>(200L, “200 OK”)); http_status_codes.insert(std::make_pair<long,std::string>(201L, “201 Created”)); http_status_codes.insert(std::make_pair<long,std::string>(202L, “202 Accepted”)); http_status_codes.insert(std::make_pair<long,std::string>(203L, “203 Non-Authoritative Information”)); […]