You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
593 B
18 lines
593 B
#include <http.hpp> |
|
#include <json.hpp> |
|
|
|
void response::bad_request(std::shared_ptr<HttpServer::Response> response) { |
|
return response->write(Status::client_error_bad_request); |
|
} |
|
|
|
void response::bad_request(std::shared_ptr<HttpsServer::Response> response) { |
|
return response->write(Status::client_error_bad_request); |
|
} |
|
|
|
void response::not_found(std::shared_ptr<HttpsServer::Response> response) { |
|
return response->write(Status::client_error_not_found); |
|
} |
|
|
|
void response::not_found(std::shared_ptr<HttpServer::Response> response) { |
|
return response->write(Status::client_error_not_found); |
|
} |