Don't include "/d" to the variable "endpoint"
Use "status" command to check the current status