Lines Matching refs:code
10 # * Redistributions of source code must retain the above copyright
46 # This code is derived from appcfg.py in the App Engine SDK (open source),
133 def __init__(self, url, code, msg, headers, args):
134 urllib2.HTTPError.__init__(self, url, code, msg, headers, None)
222 if e.code == 403:
225 raise ClientLoginError(req.get_full_url(), e.code, e.msg,
248 if (response.code != 302 or
250 raise urllib2.HTTPError(req.get_full_url(), response.code, response.msg,
348 elif e.code == 401:
350 ## elif e.code >= 500 and e.code < 600:
524 https://web.archive.org/web/20160116052001/code.activestate.com/recipes/146306
558 """Executes a command and returns the output from stdout and the return code.
567 Tuple (output, return code)