// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace System.Web.Http { /// /// Provides keys to look up error information stored in the dictionary. /// public static class HttpErrorKeys { /// /// Provides a key for the Message. /// public static readonly string MessageKey = "Message"; /// /// Provides a key for the MessageDetail. /// public static readonly string MessageDetailKey = "MessageDetail"; /// /// Provides a key for the ModelState. /// public static readonly string ModelStateKey = "ModelState"; /// /// Provides a key for the ExceptionMessage. /// public static readonly string ExceptionMessageKey = "ExceptionMessage"; /// /// Provides a key for the ExceptionType. /// public static readonly string ExceptionTypeKey = "ExceptionType"; /// /// Provides a key for the StackTrace. /// public static readonly string StackTraceKey = "StackTrace"; /// /// Provides a key for the InnerException. /// public static readonly string InnerExceptionKey = "InnerException"; /// /// Provides a key for the MessageLanguage. /// public static readonly string MessageLanguageKey = "MessageLanguage"; /// /// Provides a key for the ErrorCode. /// public static readonly string ErrorCodeKey = "ErrorCode"; } }