Add response code to http post and get