AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

Helper..::..Unauthorized Method

Creates an HttpResponseException with the specified message and HTTP status code.

Namespace:  AdvantageCSP.API
Assembly:  AdvantageCSP.API (in AdvantageCSP.API.dll)

Syntax


public static HttpResponseException Unauthorized(
	string message,
	HttpStatusCode code
)

Parameters

message
Type: String
The error message.
code
Type: HttpStatusCode
The HTTP status code. Defaults to Unauthorized.

Return Value

An HttpResponseException with the specified message and status code.