$ resp ->is_success ()
resp
Returns true when the response code is 200 through 299.
Copyright © 2001 O'Reilly & Associates. All rights reserved.