original_string: protected function _code(Exception $exception)
      {
          $code = 500;
  
          $exception = $this->_unwrap($exception);
          $errorCode = $exception->getCode();
          if ($errorCode >= 400 && $errorCode < 600) {
              $code = $errorCode;
          }
  
          return $code;
      }
code: protected function _code(Exception $exception)
      {
          $code = 500;
  
          $exception = $this->_unwrap($exception);
          $errorCode = $exception->getCode();
          if ($errorCode >= 400 && $errorCode < 600) {
              $code = $errorCode;
          }
  
          return $code;
      }
code_tokens: protected function _code ( Exception $ exception ) { $ code = 500 ; $ exception = $ this -> _unwrap ( $ exception ) ; $ errorCode = $ exception -> getCode ( ) ; if ( $ errorCode >= 400 && $ errorCode < 600 ) { $ code = $ errorCode ; } return $ code ; }
docstring: Get HTTP status code.
  
  @param \Exception $exception Exception.
  @return int A valid HTTP error status code.
docstring_tokens: Get HTTP status code .