#ifndef ERRORCONTROLLER_V2_H
#define ERRORCONTROLLER_V2_H

#include "httprequest.h"
#include "httpresponse.h"
#include "httprequesthandler.h"

class ErrorControllerV2 : public stefanfrings::HttpRequestHandler
{
    Q_OBJECT
    Q_DISABLE_COPY(ErrorControllerV2)
public:
    /** Constructor */
    ErrorControllerV2(int errorCode);

    /** Generates the response */
    void service(stefanfrings::HttpRequest &request, stefanfrings::HttpResponse &response) override;

private:
    int error;
};

#endif // ERRORCONTROLLER_H