Class ForbiddenException
- Namespace
- Cuemon.AspNetCore.Http
- Assembly
- Cuemon.AspNetCore.dll
The exception that is thrown when the client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401, the client's identity is known to the server.
public class ForbiddenException : HttpStatusCodeException, ISerializable
- Inheritance
-
ForbiddenException
- Implements
- Inherited Members
Constructors
ForbiddenException()
Initializes a new instance of the ForbiddenException class.
public ForbiddenException()
ForbiddenException(Exception)
Initializes a new instance of the ForbiddenException class.
public ForbiddenException(Exception innerException)
Parameters
innerException
ExceptionThe exception that is the cause of the current exception.
ForbiddenException(String, Exception)
Initializes a new instance of the ForbiddenException class.
public ForbiddenException(string message, Exception innerException = null)
Parameters
message
StringThe message that describes the HTTP status code.
innerException
ExceptionThe exception that is the cause of the current exception.