AcceptHeaderException class

Exception thrown when there is an error parsing the Accept header from the client. The StatusCode property indicates the HTTP status code that should be returned to the client.

public class AcceptHeaderException : InvalidOperationException
parameter description
message The error message describing the issue.
statusCode The HTTP status code to return.

Public Members

name description
AcceptHeaderException(…) Exception thrown when there is an error parsing the Accept header from the client. The StatusCode property indicates the HTTP status code that should be returned to the client.
StatusCode { get; } Gets the HTTP status code to return.

See Also