public static function AcquiaLiftAPI::isClientError in Acquia Lift Connector 7
Same name and namespace in other branches
- 7.2 includes/AcquiaLiftAPI.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/
acquia_lift.classes.inc - Maps the passed in response code to an exception class to use.
File
- includes/
acquia_lift.classes.inc, line 195 - Provides an agent type for Acquia Lift
Class
- AcquiaLiftAPI
- @file Provides an agent type for Acquia Lift
Code
public static function isClientError($code) {
return $code >= 400 && $code < 500;
}