Union
HttpError
union struct HttpError
Module: System.Web.Http
Assembly: System.Web.dll
Source file: HttpError.rvn
Inheritance: Object → ValueType → HttpError
An expected failure while constructing or exchanging an HTTP message.
Cases
13 cases
case InvalidUri(reason: UriError)
A URI could not be parsed or resolved.
case NameResolution(reason: DnsError)
Host name resolution failed.
case Transport(reason: SocketError)
A socket operation failed.
case Content(reason: StreamError)
Reading an upload source failed or ended before its declared length.
case UnsuccessfulStatus(statusCode: HttpStatusCode)
A convenience operation required a successful status but received another status.
case InvalidRequest(message: string)
The request is invalid for this HTTP implementation.
case Protocol(message: string)
The peer supplied an invalid or incomplete HTTP message.
case Unsupported(message: string)
The requested HTTP behavior is not supported.
case LimitExceeded(message: string)
A configured message or resource bound was exceeded.
case TimedOut
The shared request deadline expired.
case Tls(reason: SslError)
Certificate configuration or peer authentication failed.
case SecureTransport(reason: StreamError)
Encrypted stream framing, truncation or state failure.
case Handler(message: string)
An application handler could not produce a response.
Properties
2 items
HasValue: bool
An expected failure while constructing or exchanging an HTTP message.
Value: object?
An expected failure while constructing or exchanging an HTTP message.
Methods
4 items
Equals(other: object?) -> bool
Tests reference identity by default; an ordinary class may override equality.
Inherited from Object.Equals
GetHashCode() -> int
Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
Inherited from Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
ToString() -> string
Returns diagnostic text; match cases to inspect structured causes.
Overrides Object.ToString