aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Server/NotFoundHandler.h
blob: 1cbfcd57f8f168fbcf5f90e325ee6223bdb0e270 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <Server/HTTP/HTTPRequestHandler.h>

namespace DB
{

/// Response with 404 and verbose description.
class NotFoundHandler : public HTTPRequestHandler
{
public:
    NotFoundHandler(std::vector<std::string> hints_) : hints(std::move(hints_)) {}
    void handleRequest(HTTPServerRequest & request, HTTPServerResponse & response) override;
private:
    std::vector<std::string> hints;
};

}