ForbiddenObjectResult Constructor
Definition
- Namespace
- Cuemon.AspNetCore.Mvc
- Assemblies
- Cuemon.AspNetCore.Mvc.dll
ForbiddenObjectResult(object, int)
Initializes a new instance of the ForbiddenObjectResult class.
public ForbiddenObjectResult(object value, int statusCode = 403)
Parameters
valueobjectThe value to be returned to the client.
statusCodeintThe HTTP status code of the response which has to be in the 400-499 range. Default is 403, but for security reasons you may wish to "hide" this with another, e.g., 400, 404 or whatever fits your strategy.