HTTP response codes
HTTP response codes indicates the success or failure of an API Application Programming Interface; a set of clearly defined methods of communication between various software components. request. The response contains:
- A response code and description.
- Optional payload.
Some APIs have specific response codes. For details, see the API documentation
HTTP status code summary
|
Code |
Description |
Scenario |
|---|---|---|
|
OK |
Authorisation (Basic Auth) and Header parameters are correct |
|
|
Mandatory header X-initiatingParticipantID is missing and / or Mandatory header X-Market is missing |
One of the following mandatory header parameter is missing:
|
|
|
The authorization credentials, username or password is invalid. E-Hub also sends the payload {"Exception": "Unauthorised: Invalid Username or Password"} |
||
|
Invalid Role |
The participantId does not have access to the API. See TLS Certificates for details |
|
|
Resource for the endpoint URI not found |
The URI details are incorrect. See:
|
|
|
Method not allowed |
The request method is invalid, e.g. GET instead of POST |
|
|
Payload too large |
Remove records from the payload and re-try |
|
|
The Entity cannot be processed |
The API content failed business validation rules. For detail see the validation message relevant to the API on the API Reference Guide catalogue. |
|
|
Too many requests |
Possible reasons:
|
|
|
Application unavailable |
Possible reasons:
|
|
|
Bad Gateway |
The AEMO Gateway is unavailable. Wait and retry the submission |
|
|
Exceeds Throttling Limits |
Service request rejected based on policy violation |
Response examples
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: nnn
Date: Mon, 01 May 2017 18:00:00 GMT
Connection: close
{
"data": {
"MaxRecallTime": 506200,
"SuccessFlag": true,
"ResponseMessage": "Get Recall Plan action succeeded",
"RecallPlanList": [
{
"StationId": "TEST",
"OutagePlanId": "TEST_OUT1",
"Stage1Description": null,
"Stage2Description": null,
"DUID": "TEST1",
"MinimumStartDate": "2017-11-10T00:00:00",
"MaximumEndDate": "2017-11-11T00:00:00",
"VersionDateTime": "2017-11-16T18:20:12",
"Entries": []
}
]
}
}
HTTP/1.1 405 Method Not Allowed
Content-Length: nnn
Date: Mon, 01 May 2017 18:00:00 GMT
Connection: close
{
"Exception": "Input request HTTP method is GET but operation /listRecallPlans accepts only: [POST]"
}