Response and Status Codes#

Every API request to LoanStreet returns standard responses and statuses.

LoanStreet Standard Response Payload#

LoanStreet adds a generic set of attributes to every API response. These are:

{
"status": "success",
"status_code": 200,
"detail": Request was successful",
"payload": [ { data1, data2 } ]
}

Response Attributes#

LoanStreet Status Codes#

HTTP Status Codes

HTTP status code indicates the result of an API call.

For every successful or unsuccessful API call, one of the following HTTP Status Code is returned in the response message:

Http Status Codes#

Error Code

Description

200 Ok

Success response

201 Created

Successfully created

401 Unauthorized or bad token

The account is either unauthorized or has a malformed token

403 Insufficient Permissions

Your account does not have enough permissions

404 Resource Not Found

Could not find the requested resource. Check the URI for errors

429 Rate Limited

Rate limit exceeded

500

An error has occurred within the API

503

The server is unavailable

Example of a request failure:

HTTP/1.1 429 Too Many Requests
Vary: Accept
Content-Type: text/javascript

{'error': 'Rate limit exceeded: 10 per 1 second'}