WeavyController.ThrowResponseException Method

Namespace:
Weavy.Web.Controllers
Assembly:
Weavy.Web.dll

ThrowResponseException(HttpStatusCode, string)

Throws a HttpException with the specified code and message.

public void ThrowResponseException(HttpStatusCode code, string message = null)

Parameters

code
System.Net.HttpStatusCode

The status code of the response.

message
string

An optional error message.