 | HttpErrorUtilityGetHttpStatusCode Method |
Get the HTTP status code for exception
Namespace: SanteDB.Rest.CommonAssembly: SanteDB.Rest.Common (in SanteDB.Rest.Common.dll) Version: 3.0.2081-alpha+19f573cdc8c56fbc278c5e41a734f011a9baa699
Syntaxpublic static HttpStatusCode GetHttpStatusCode(
this Exception exception
)
<ExtensionAttribute>
Public Shared Function GetHttpStatusCode (
exception As Exception
) As HttpStatusCode
public:
[ExtensionAttribute]
static HttpStatusCode GetHttpStatusCode(
Exception^ exception
)
[<ExtensionAttribute>]
static member GetHttpStatusCode :
exception : Exception -> HttpStatusCode Parameters
- exception Exception
- The exception for which the error code should be obtained
Return Value
HttpStatusCodeThe HTTP status code
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Exception. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also