Status codes
Updated at:
The following tables list the status codes for edge APIs.
| HTTP status code | Error code (Code) | Description |
| 200 OK | None | The API call was successful. |
| 201 Created | None | The request was successful and the server created a new resource. |
| 400 Bad Request | BadRequest | The request has incorrect semantics. The server cannot understand the request. Do not resubmit the request without modifying it. For more information, see the Detailed error messages for the 400 Bad Request status code table below. |
| 401 Unauthorized | Unauthorized | The identity authentication cookie for the target resource is incorrect. Call the CreateAuthCookie API operation again to update the cookie. Otherwise, you cannot call other API operations. |
| 403 Forbidden | Forbidden | The server understands the request but refuses to execute it. Verify that the current user has permission to call the API operation. |
| 404 Not Found | NotFound | The request failed. The requested resource was not found on the server. Confirm that the request parameters are correct. |
| 405 Method Not Allowed | MethodNotAllowed | The request method specified in the request line cannot be used for the requested resource. For example, the POST method is not supported. |
| 500 Internal Server Error | InternalServerError | An internal server error occurred. For more information, see the Detailed error messages for the 500 Internal Server Error status code table below. Note If a 500 Internal Server Error occurs, check the error message and log content first to troubleshoot the issue. |
| 503 Service Unavailable | ServiceUnavailable | The server cannot handle the request due to temporary server maintenance or overload. |
| Error code (Code) | Description |
| InvalidParameter | A request parameter is invalid. Enter the correct request parameters and retry. |
| MissingParameter | A required request parameter is missing. Enter the correct request parameters and retry. |
| Error code (Code) | Description |
| Cookie.Handler.Create | Failed to create the identity authentication cookie. |
| Cookie.Set | Failed to save the identity authentication cookie. |
| HMAC | The Hash-based Message Authentication Code (HMAC) operation for the authentication message failed. |
| Connection.Create | Failed to establish a connection with the upstream service. |
| Connection.Lost | The connection to the upstream service is lost. |
| Message.Create | Failed to create the message to be sent to the upstream service. |
| Message.SendAndReply | An error occurred when sending a message to or receiving a message from the upstream service. |
| Message.InvalidReply | The format of the response from the upstream service is incorrect. |
| Message.FailedReply | The response from the upstream service indicates that the API call failed. This error code is returned if the error code (Code) from the upstream service is not in the list of errors that use the |
| Service.NotExist | The upstream service does not exist. This error code is typically reported when the upstream service is not started or has exited. |
| Service.Data.Get | Failed to get data from the data center. |
| Service.Data.Set | Failed to set data in the data center. |
| Service.Data.KeyNotExist | Failed to get data from the data center because the data key does not exist. |
| Service.Thing.Call | Failed to call the device API operation. For more information, see Device access status codes. |
| Service.Function.NotExist | The called function does not exist. |
| Service.Function.Timeout | The function execution timed out. |
| Service.Scene.NotExist | The scene rule does not exist. |
| Service.Scene.NotAtLevel0 | The operation is denied because the scene orchestration is not in Normal mode. For example, it is in Sceneless mode. Change the mode to Normal and retry. |
Is this page helpful?