BadHttpRequestException Class

Definition

Represents an HTTP request error

C#
public class BadHttpRequestException : System.IO.IOException
Inheritance
BadHttpRequestException
Derived

Constructors

BadHttpRequestException(String, Exception)

Initializes a new instance of the BadHttpRequestException class with the StatusCode set to 400 Bad Request.

BadHttpRequestException(String, Int32, Exception)

Initializes a new instance of the BadHttpRequestException class.

BadHttpRequestException(String, Int32)

Initializes a new instance of the BadHttpRequestException class.

BadHttpRequestException(String)

Initializes a new instance of the BadHttpRequestException class with the StatusCode set to 400 Bad Request.

Properties

StatusCode

Gets the HTTP status code for this exception.

Applies to

Product Versions
ASP.NET Core 5.0, 6.0, 7.0, 8.0, 9.0