OpenAPIRuntime ServerError Structure ServerError An error thrown by a server handling an OpenAPI operation. struct ServerError Topics Initializers init(operationID: String, request: HTTPRequest, requestBody: HTTPBody?, requestMetadata: ServerRequestMetadata, operationInput: (any Sendable)?, operationOutput: (any Sendable)?, causeDescription: String, underlyingError: any Error)Creates a new error. init(operationID: String, request: HTTPRequest, requestBody: HTTPBody?, requestMetadata: ServerRequestMetadata, operationInput: (any Sendable)?, operationOutput: (any Sendable)?, causeDescription: String, underlyingError: any Error, httpStatus: HTTPResponse.Status, httpHeaderFields: HTTPFields, httpBody: HTTPBody?)Creates a new error. Instance Properties var causeDescription: StringA user-facing description of what caused the underlying error to be thrown. var httpBody: HTTPBody?The body of the HTTP response. var httpHeaderFields: HTTPFieldsThe HTTP header fields of the response. var httpStatus: HTTPResponse.StatusAn HTTP status to return in the response. var operationID: StringIdentifier of the operation that threw the error. var operationInput: (any Sendable)?An operation-specific Input value. var operationOutput: (any Sendable)?An operation-specific Output value. var request: HTTPRequestThe HTTP request provided to the server. var requestBody: HTTPBody?The HTTP request body provided to the server. var requestMetadata: ServerRequestMetadataThe request metadata extracted by the server. var underlyingError: any ErrorThe underlying error that caused the operation to fail. Relationships Conforms To HTTPResponseConvertible