Class Constants
Constants used throughout this SDK.
Inheritance
System.Object
    Constants
  Namespace: EasyPost
Assembly: EasyPost.dll
Syntax
public static class Constants : object
  Methods
| Improve this Doc View SourceEasyPostExceptionType(HttpStatusCode)
Get a ApiError 
Declaration
public static Type? EasyPostExceptionType(this HttpStatusCode statusCode)
  Parameters
| Type | Name | Description | 
|---|---|---|
| HttpStatusCode | statusCode | The   | 
      
Returns
| Type | Description | 
|---|---|
| System.Nullable<Type> | The corresponding ApiError type.  | 
      
GetEasyPostExceptionType(HttpStatusCode)
Get a ApiError 
Declaration
public static Type? GetEasyPostExceptionType(HttpStatusCode statusCode)
  Parameters
| Type | Name | Description | 
|---|---|---|
| HttpStatusCode | statusCode | The   | 
      
Returns
| Type | Description | 
|---|---|
| System.Nullable<Type> | The corresponding ApiError type.  | 
      
GetEasyPostExceptionType(Int32)
Get a ApiError 
Declaration
public static Type? GetEasyPostExceptionType(int statusCode)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | statusCode | The HTTP status code to find the ApiError for.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Nullable<Type> | The corresponding ApiError type.  |