I'm using an API library in Node that doesn't return the status code of the HTTP response. However, it does return the response headers, which look like this:
{ ...
status: '200 OK',
... }
Is there any Node library I can use to parse the status code from the returned object's status? Will a crude +res.status.slice(0, 3)
do?
EDIT: Link to the library.