HttpResponse.isSuccessful

Returns true if the code is in [200..300), which means the request was successfully received, understood, and accepted.

class HttpResponse
bool
isSuccessful
()

Meta