Table of Contents

Class HttpStatusCodeException

Namespace
FoundationaLLM.Common.Exceptions
Assembly
FoundationaLLM.Common.dll

Represents an exception that maps to a HTTP status code.

public class HttpStatusCodeException : Exception, ISerializable
Inheritance
HttpStatusCodeException
Implements
Derived
Inherited Members
Extension Methods

Constructors

HttpStatusCodeException()

Initializes a new instance of the HttpStatusCodeException class with a default message.

public HttpStatusCodeException()

HttpStatusCodeException(string?, Exception?, int)

Initializes a new instance of the HttpStatusCodeException class with its message set to message.

public HttpStatusCodeException(string? message, Exception? innerException, int statusCode = 500)

Parameters

message string

A string that describes the error.

innerException Exception

The exception that is the cause of the current exception.

statusCode int

The HTTP status code associated with the exception.

HttpStatusCodeException(string?, int)

Initializes a new instance of the HttpStatusCodeException class with its message set to message.

public HttpStatusCodeException(string? message, int statusCode = 500)

Parameters

message string

A string that describes the error.

statusCode int

The HTTP status code associated with the exception.

Properties

StatusCode

Provides the HTTP status code associated with the exception.

public int StatusCode { get; }

Property Value

int