Unable to send Okta Push Factors (via API) from NodejS

I am trying to integrate okta push authentication in my nodeJS
so I am calling the API("/api/v1/users/userid/factors/factorid/verify") using HttpRequest from nodeJS, I am receiving a null response and further getting Exception as “The remote server returned an error: (500) Internal Server Error.” but at the same time it works fine with REST API.
Any pointers?