You are here

protected function Response::isSuccessful in RESTful 7.2

Is response successful?

Return value

bool

File

src/Http/Response.php, line 193
Contains \Drupal\restful\Http\Response.

Class

Response

Namespace

Drupal\restful\Http

Code

protected function isSuccessful() {
  return $this->statusCode >= 200 && $this->statusCode < 300;
}