Click or drag to resize

IWebApiCreateErrorResponse Method

Create http error response with status code and message
Examples
var webApi = ctx.Use<IWebApi>();
webApi.CreateErrorResponse(401, "You are not authorized");

Namespace:  Casewhere.WebTrigger.DSL
Assembly:  Casewhere.WebTrigger (in Casewhere.WebTrigger.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
void CreateErrorResponse(
	int statusCode,
	string message
)

Parameters

statusCode
Type: SystemInt32
Status code
message
Type: SystemString
Error message
See Also