Table of Contents

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 Exception

The 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 String

The message that describes the HTTP status code.

innerException Exception

The exception that is the cause of the current exception.

See Also