code: function getErrorCode(message) {
      var tokens = message.split('\n'),
          token;
      while (tokens.length) {
          token = tokens.shift();
          if (token.indexOf('CODE:') === 0) {
              token = parseInt(token.replace('CODE:', ''));
              if (Type.isNumber(token) && !isNaN(token)) {
                  return token;
              }
          }
      }
      return 500;
  }
docs: @license Mit Licence 2014
  @since 0.0.1
  @author Igor Ivanovic
  @name getErrorCode
  
  @description
  Get error code from request
  @return number