catch api call limit status code and parse it for other libraries to use.