Waits until the HTTP status code of this response is given, then returns the  code.