public function ResponseClass($Class) {
      $Code = (string)$this->ResponseStatus;
      if (is_null($Code)) return FALSE;
      if (strlen($Code) != strlen($Class)) return FALSE;
      
      for ($i = 0; $i < strlen($Class); $i++)
         if ($Class{$i} != 'x' && $Class{$i} != $Code{$i}) return FALSE;
      
      return TRUE;
   }
public function ResponseClass($Class) {
      $Code = (string)$this->ResponseStatus;
      if (is_null($Code)) return FALSE;
      if (strlen($Code) != strlen($Class)) return FALSE;
      
      for ($i = 0; $i < strlen($Class); $i++)
         if ($Class{$i} != 'x' && $Class{$i} != $Code{$i}) return FALSE;
      
      return TRUE;
   }
public function ResponseClass ( $ Class ) { $ Code = ( string ) $ this -> ResponseStatus ; if ( is_null ( $ Code ) ) return FALSE ; if ( strlen ( $ Code ) != strlen ( $ Class ) ) return FALSE ; for ( $ i = 0 ; $ i < strlen ( $ Class ) ; $ i ++ ) if ( $ Class { $ i } != 'x' && $ Class { $ i } != $ Code { $ i } ) return FALSE ; return TRUE ; }
Check if the provided response matches the provided response type

Class is a string representation of the HTTP status code, with 'x' used
as a wildcard.

Class '2xx' = All 200-level responses
Class '30x' = All 300-level responses up to 309

@param string $Class
@return boolean Whether the response matches or not
Check if the provided response matches the provided response type