We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e64158c commit 9ff1b78Copy full SHA for 9ff1b78
Sources/OpenAPIRuntime/Interface/ErrorHandlingMiddleware.swift
@@ -67,10 +67,10 @@ public struct ErrorHandlingMiddleware: ServerMiddleware {
67
}
68
69
/// A protocol used by ``ErrorHandlingMiddleware`` to map an error to an `HTTPResponse` and ``HTTPBody``.
70
-/// Adopters who wish to convert their application error to a HTTPResponse should confirm their error(s) to this protocol.
+/// Adopters who wish to convert their application error to an `HTTPResponse` and ``HTTPBody`` should conform the error type to this protocol.
71
public protocol HTTPResponseConvertible {
72
73
- /// HTTP status to return in the response.
+ /// An HTTP status to return in the response.
74
var httpStatus: HTTPResponse.Status { get }
75
/// The HTTP headers of the response.
76
///
0 commit comments