IncludeErrorDetailPolicy Enumeration
Specifies whether error details, such as exception messages and stack traces, should be included in error messages.
Assembly: System.Web.Http (in System.Web.Http.dll)
| Member name | Description | |
|---|---|---|
| Always | Always include error details. | |
| 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. | |
| Never | Never include error details. |
Show: