AcceptHeaderException constructor

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 AcceptHeaderException(string message, int statusCode)
parameter description
message The error message describing the issue.
statusCode The HTTP status code to return.

See Also