Click or drag to resize

HttpErrorUtilityGetHttpStatusCode Method

Get the HTTP status code for exception

Namespace: SanteDB.Rest.Common
Assembly: SanteDB.Rest.Common (in SanteDB.Rest.Common.dll) Version: 3.0.2081-alpha+19f573cdc8c56fbc278c5e41a734f011a9baa699
Syntax
public static HttpStatusCode GetHttpStatusCode(
	this Exception exception
)

Parameters

exception  Exception
The exception for which the error code should be obtained

Return Value

HttpStatusCode
The 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