Dela via


System.Web.Http Namespace

Classes

ApiController

Defines properties and methods for API controller.

BadRequestErrorMessageResult

An action result that returns a Status400BadRequest response and performs content negotiation on an HttpError with a Message.

ConflictResult

An action result that returns an empty Status409Conflict response.

ExceptionResult

An action result that returns a Status500InternalServerError response and performs content negotiation on an HttpError based on an Exception.

FromUriAttribute

An attribute that specifies that the value can be bound from the query string or route data.

HttpError

Defines a serializable container for storing error information. This information is stored as key/value pairs. The dictionary keys to look up standard error information are available on the HttpErrorKeys type.

HttpErrorKeys

Provides keys to look up error information stored in the HttpError dictionary.

HttpResponseException

An exception that allows for a given HttpResponseMessage to be returned to the client.

InternalServerErrorResult

An action result that returns an empty Status500InternalServerError response.

InvalidModelStateResult

An action result that returns a Status400BadRequest response and performs content negotiation on an HttpError based on a ModelStateDictionary.

NegotiatedContentResult<T>

An action result that performs content negotiation.

ResponseMessageResult

An action result that returns a specified response message.