You are here

public function EasyRdf_Http_Response::isError 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::isError()

Check whether the response is an error

Return value

boolean

File

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

Class

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

Code

public function isError() {
  return $this->status >= 400 && $this->status < 600;
}