Required Instance Propertyvapor 4.114.1Vapor
headers
Optional HTTPHeaders
to add to the error response.
var headers: HTTPHeaders { get }
Optional HTTPHeaders
to add to the error response.
var headers: HTTPHeaders { get }
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
protocol AbortError : Error
Errors conforming to this protocol will always be displayed by Vapor to the end-user (even in production mode where most errors are silenced).
struct HTTPHeaders
A representation of a block of HTTP header fields.
var reason: String { get }
The reason for this error.
var status: HTTPResponseStatus { get }
The HTTP status code this error will return.
var headers: HTTPHeaders { get }
See AbortError
.