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
messagestringA string that describes the error.
innerExceptionExceptionThe exception that is the cause of the current exception.
statusCodeintThe 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
messagestringA string that describes the error.
statusCodeintThe HTTP status code associated with the exception.
Properties
StatusCode
Provides the HTTP status code associated with the exception.
public int StatusCode { get; }