The connection was rejected. Either the requested service isn’t running on the requested server/port, the proxy settings in vscode are misconfigured

GET http://localhost:5000/users



###
POST http://localhost:5000/users
Content-Type: application/json

{
    "name": "Chan",
    "email": "xxxxxx@gmail.com",
    "gender": "male"
}

I cannot send the request and i am getting the errconnrefused error may i know how to overcome this ?