Errors

EnPowered uses standard HTTP response codes to indicate whether the API call succeeded or failed.

Error Handling

{
    "errors": [
        {
            "status": "400",
            "detail": "Can't reactivate meter",
            "title": "InvalidCommand",
            "meta": "Can't reactivate meter because account is inactive or inexistent"
        }
    ]
}

Status Codes

2xx Errors

Indicates that the call was successful.

200

Ok.  Everything worked as expected.

4xx Errors

Indicates a failure based on the information provided. There are some 4xx errors that can be handled programmatically and when this is the case, an error code will be included outlining more information about what occurred.

400

Bad request.  One of the parameters provided in your request was invalid or missing.

401

Unauthorized.  No token has been provided.

402

Request Failed.  The parameters were valid but the request itself failed.

403

Forbidden.  Your API key does not have access to this account.

404

Not Found.  The requested resource doesn’t exist.

5xx Errors

Indicates something went wrong inside EnPowered. 

501

An error has occurred with the account information.Please contact support@getenpowered.com.