Show / Hide Table of Contents

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 Source

EasyPostExceptionType(HttpStatusCode)

Get a ApiError corresponding to this .

Declaration
public static Type? EasyPostExceptionType(this HttpStatusCode statusCode)
Parameters
Type Name Description
HttpStatusCode statusCode

The to find the ApiError for.

Returns
Type Description
System.Nullable<Type>

The corresponding ApiError type.

| Improve this Doc View Source

GetEasyPostExceptionType(HttpStatusCode)

Get a ApiError from its corresponding .

Declaration
public static Type? GetEasyPostExceptionType(HttpStatusCode statusCode)
Parameters
Type Name Description
HttpStatusCode statusCode

The to find the ApiError for.

Returns
Type Description
System.Nullable<Type>

The corresponding ApiError type.

| Improve this Doc View Source

GetEasyPostExceptionType(Int32)

Get a ApiError from its corresponding HTTP status code.

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.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX