Share via

IncludeErrorDetailPolicy Enumeration

Specifies whether error details, such as exception messages and stack traces, should be included in error messages.

Namespace:  System.Web.Http
Assembly:  System.Web.Http (in System.Web.Http.dll)


Public Enumeration IncludeErrorDetailPolicy
Dim instance As IncludeErrorDetailPolicy
public enum IncludeErrorDetailPolicy
public enum class IncludeErrorDetailPolicy
type IncludeErrorDetailPolicy
public enum IncludeErrorDetailPolicy


Member name Description
Default Use the default behavior for the host environment. For ASP.NET hosting, use the value from the customErrors element in the Web.config file. For self-hosting, use the value LocalOnly.
LocalOnly Only include error details when responding to a local request.

Always Always include error details.

Never Never include error details.

See Also


System.Web.Http Namespace