You are here

public static function AcquiaLiftAPI::isServerError in Acquia Lift Connector 7

Same name and namespace in other branches
  1. 7.2 includes/AcquiaLiftAPI.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/acquia_lift.classes.inc
Maps the passed in response code to an exception class to use.

File

includes/acquia_lift.classes.inc, line 207
Provides an agent type for Acquia Lift

Class

AcquiaLiftAPI
@file Provides an agent type for Acquia Lift

Code

public static function isServerError($code) {
  return $code >= 500 && $code < 600;
}