public static function AcquiaLiftAPI::isClientError in Acquia Lift Connector 7.2
Same name and namespace in other branches
- 7 includes/acquia_lift.classes.inc \AcquiaLiftAPI::isClientError()
Whether the passed in status code represents a client side error.
Parameters
$code: The status code.
Return value
bool TRUE if the code represents a client error, FALSE otherwise.
1 call to AcquiaLiftAPI::isClientError()
- AcquiaLiftAPI::mapBadResponseToExceptionClass in includes/
AcquiaLiftAPI.inc - Maps the passed in response code to an exception class to use.
File
- includes/
AcquiaLiftAPI.inc, line 92
Class
Code
public static function isClientError($code) {
return $code >= 400 && $code < 500;
}