Documentation Language: Swift

Property

forbidden

403 Forbidden response.

static var forbidden: HTTPResponse { get }

Discussion

Returned when the requested path is outside the allowed directory or otherwise inaccessible for security reasons.

See Also

Creating Error Responses

?
badRequest

400 Bad Request response.

?
notFound

404 Not Found response.

?
methodNotAllowed

405 Method Not Allowed response.

?
internalServerError

500 Internal Server Error response.