added response status code to debug output