UnAuthorized extension

Sends a 403 forbidden response.

Attempts to render errors.403. If the template is missing, falls back to a plain-text response.

Example:

return request.forbidden();
on

Methods

forbidden() Future<HttpResponse>

Available on HttpRequest, provided by the UnAuthorized extension

Renders errors.403 or falls back to a plain 403 response.