API

Handling errors in communication with Portafino API

Portafino API uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc.). Codes in the 5xx range indicate an error with Portafino’s service.

Error codes

Code
Response
Description

200

OK

Everything worked as expected.

400

Bad Request

The request was unacceptable, often due to invalid parameter.

401

Unauthorized

The request is not authorized

404

Not found

The request is not handled because endpoint is not correct

410

Gone

The request is referencing deprecated resource

422

Unprocessable Entity

The request is accepted, but could not be processed because entity is in incorrect state

500

Internal Server Errors

Something went wrong on our end.

502

Bad Gateway

An upstream error occured which was not handled properly

Last updated