The Energy Hub Alliance uses error codes to indicate success or failure of API requests. HTTP status codes are used to indicate where things went wrong.

  • 2XX: indicates success
  • 4XX: indicates an invalid request (e.g. a required variable is missing from the request body)
  • 5XX: indicates that somethings went wrong on Energy Hub Alliance side (e.g. device is not capable of fulfilling a request).

Common error codes

Error codeReasonHTTP status
BAD_REQUESTBad request400
VARIABLE_MUST_NOT_BE_BLANKPath variable is not present400
METHOD_ARGUMENT_TYPE_MISMATCHFailed to convert value to required type400
MISSING_REQUEST_PARAMETERRequired request parameter is not present400
MISSING_REQUEST_PARTRequired request part is not present400
MAXIMUM_UPLOAD_SIZE_EXCEEDEDMaximum upload size exceeded400
UNAUTHORIZEDUnauthorized401
VENDOR_ACCOUNT_NOT_FOUNDRequested vendor account is not found.404
METHOD_NOT_ALLOWEDRequest HTTP method is not supported405
UNSUPPORTED_MEDIA_TYPEMedia type is not supported415
TOO_MANY_REQUESTSToo many requests429
INTERNAL_SERVER_ERRORAn error occurred500
NOT_IMPLEMENTEDWork in progress501
VENDOR_IMPLEMENTATION_IN_PROGRESSVendor feature implementation in progress501
VENDOR_CONNECTION_ERRORConnection cannot be established with Vendor API503
VENDOR_AUTHENTICATION_ERRORAuthentication error with Vendor API503
VENDOR_COMMUNICATION_ERRORCommunication error with Vendor API503

The response with the error code BAD_REQUEST may contain the field validationErrors. This field includes the list of fields that failed the validation check with the error message for each field.


Service specific error codes

Error codeReasonServiceHTTP status
USER_LINK_NOT_FOUNDUser link not found.CONNECT404
REDIRECT_URL_NOT_MATCHINGProvided redirect url does not match partner management redirect url.CONNECT409
TELEMATICS_NOT_SUPPORTEDVehicle does not support telematics.CONNECT405
LOCATION_NOT_FOUNDRequested Location not foundLOCATION404
TARIFF_NOT_FOUNDTariff not found.TARIFF404
TARIFF_ALREADY_ADDEDTariff already addedTARIFF409
VEHICLE_NOT_FOUNDRequested Vehicle not foundVEHICLE404
VEHICLE_ALREADY_ADDEDRequested Vehicle is already addedVEHICLE409
VEHICLE_IMAGE_NOT_FOUNDVehicle image not foundVEHICLE404
VIN_NOT_FOUNDVIN not foundVEHICLE404
COMMAND_REQUEST_NOT_IMPLEMENTEDSubmitting command request is not implementedVEHICLE501
COMMAND_NOT_FOUNDVehicle command not foundVEHICLE404
COMMAND_TYPE_NOT_ALLOWEDCommand type for this vehicle is not allowedVEHICLE409
HVAC_NOT_FOUNDHVAC not foundHVAC404
HVAC_SCHEDULES_NOT_AVAILABLEHVAC schedules not availableHVAC404
HVAC_ALREADY_ADDEDHvac has already been addedHVAC409
HVAC_IMAGE_NOT_FOUNDHvac image not foundHVAC409
CHARGER_NOT_FOUNDRequested Charger not foundCHARGER404
CHARGER_ALREADY_ADDEDRequested Charger is already addedCHARGER409
COMMAND_REQUEST_NOT_IMPLEMENTEDSubmitting command request is not implementedCHARGER501
COMMAND_NOT_FOUNDCharger command not foundCHARGER404
COMMAND_TYPE_NOT_ALLOWEDCommand type for this charger is not allowedCHARGER409
PV_INVERTER_NOT_FOUNDRequested PV inverter not foundHOME_POWER404
PV_INVERTER_ALREADY_ADDEDRequested PV inverter is already addedHOME_POWER409
BATTERY_NOT_FOUNDBattery not foundHOME_POWER404
BATTERY_ALREADY_ADDEDBattery has already been addedHOME_POWER409
METER_NOT_FOUNDMeter not foundHOME_POWER404
METER_ALREADY_ADDEDMeter has already been addedHOME_POWER409