isHttpStatusCodeSuccess

open fun isHttpStatusCodeSuccess(httpStatusCode: Integer): Boolean

Check is a response code is successful (2XX)

Return

true if the response code is 2XX, otherwise false

Parameters

httpStatusCode

the response code to check