added isServerError() method