Click or drag to resize

IWebApiCreateErrorResponse Method

Create http error response with status code and message
Example
C#
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  Int32
Status code
message  String
Error message
See Also