Print the http error code on api request failures