12#include <unordered_map>
13#include <nlohmann/json.hpp>
46 if (status_code == StatusCode::_204) {
47 return crow::response(
static_cast<int>(status_code));
50 nlohmann::json res_json = {
54 crow::response res(
static_cast<int>(status_code));
55 res.set_header(
"Content-Type",
"application/json");
56 res.write(res_json.dump());
StatusCode
HTTP 상태 코드를 나타내는 열거형.
Definition handler_base.hpp:20
crow::response createCommonResponse(StatusCode status_code, const std::string &message="")
공통 HTTP 응답을 생성하는 함수.
Definition handler_base.hpp:45
다양한 범용 유틸리티 함수와 공통 설정을 포함하는 헤더 파일입니다.