You are here

public function EasyRdf_Http_Response::isSuccessful in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Http/Response.php \EasyRdf_Http_Response::isSuccessful()

Check whether the response in successful

Return value

boolean

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Http/Response.php, line 114

Class

EasyRdf_Http_Response
Class that represents an HTTP 1.0 / 1.1 response message.

Code

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