public static boolean isServerError(int code)
public boolean isServerError()
   public static boolean isServerError(int code)   {      boolean result = false;      switch(code)      {         case 500:         case 501:         case 502:         case 503:         case 504:         case 505:         case 507:            result = true;         break;      }      return result;   }