Errors
In the event of a client or server error, the response will contain a 4xx
or 5xx
status code, respectively, accompanied by a well-formed JSON body describing the issue, e.g., a required field was omitted.
Each client library will encapsulate these errors and raise an exception, in addition to other exceptional cases, such as network failures. It is recommended to handle exceptions gracefully and to report any issues to support@easypost.com.
Full List of Error Codescode
string
Machine-readable description of the problem
message
string
Human-readable description of the problem
errors
FieldError array
Breakdown of errors for specific fields in the request
Error Object
{
"code": "ADDRESS.VERIFY.FAILURE",
"message": "Address not found",
"errors": [
{
"field": "address",
"message": "Address not found",
"suggestion": null
},
{
"field": "street1",
"message": "House number is missing",
"suggestion": null
}
]
}
field
string
Field of the request that the error describes
message
string
Human-readable description of the problem
suggestion
string
Occasional insight on how to correct the error
FieldError Object
{
"field": "address",
"message": "Address not found",
"suggestion": null
}
200
OK
The request was successful
201
Created
The request was successful and one or more resources was created.
400
Bad Request
The request was not processed due to a client error.
401
Unauthorized
Authentication is required and has failed.
402
Payment Required
There is a lack of billing information or insufficient funds.
404
Not Found
The requested resource could not be found.
422
Unprocessable Entity
The request was well-formed, but the server was unable to process the provided data.