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