Abort

public struct Abort : AbortError

Default implementation of AbortError. You can use this as a convenient method for throwing AbortErrors without having to conform your own error-type to AbortError.

throw Abort(.badRequest, reason: "Something's not quite right...")