WeavyApiController.ThrowResponseException Method

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

ThrowResponseException(HttpStatusCode, string)

Throws a HttpResponseException with the specified code and message.

public void ThrowResponseException(HttpStatusCode code, string message)

Parameters

code
System.Net.HttpStatusCode

The status code of the response.

message
string

The error message.