Just returns an empty response with just the specified status code. No error message is sent.
public static void ThrowHttpException(ApiController controller, HttpStatusCode statusCode)
Parameters
controller
statusCode
Overloads:
public static void ThrowHttpException(ApiController controller, HttpStatusCode statusCode, string message)
public static void ThrowHttpException(ApiController controller, HttpStatusCode statusCode, Exception ex)
See also:
Class ApiControllerExtensions© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic