HttpRequestMessageExtensions.CreateErrorResponse Method
Creates an HttpResponseMessage that represents an error.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
CreateErrorResponse(HttpRequestMessage, HttpStatusCode, Exception) | Creates an HttpResponseMessage that represents an exception. |
|
CreateErrorResponse(HttpRequestMessage, HttpStatusCode, String) | Creates an HttpResponseMessage that represents an error message. |
|
CreateErrorResponse(HttpRequestMessage, HttpStatusCode, HttpError) | Creates an HttpResponseMessage that represents an error. |
|
CreateErrorResponse(HttpRequestMessage, HttpStatusCode, ModelStateDictionary) | Creates an HttpResponseMessage that represents an error in the model state. |
|
CreateErrorResponse(HttpRequestMessage, HttpStatusCode, String, Exception) | Creates an HttpResponseMessage that represents an exception with an error message. |