Function setCustom404Page

Synopsis

#include <lib/inc/drogon/HttpAppFramework.h>

virtual HttpAppFramework & setCustom404Page(const HttpResponsePtr &resp, bool set404=true)=0

Description

Set custom 404 page.

Parameters:

resp - is the object set to 404 response After calling this method, the resp object is returned by the HttpResponse::newNotFoundResponse() method.

set404 - if true, the status code of the resp will be set to 404 automatically

Source

Line 125 in lib/inc/drogon/HttpAppFramework.h.






Add Discussion as Guest

Log in to DocsForge