vraapiclient/helpers.py
def checkResponse(r):
    """
	Quick logic to check the http response code.

	Parameters:
		r = http response object.
	"""

    acceptedResponses = [200, 201, 203, 204]
    if not r.status_code in acceptedResponses:
        print "STATUS: {status} ".format(status=r.status_code)
        print "ERROR: " + r.text
        sys.exit(r.status_code)

	Quick logic to check the http response code.

	Parameters:
		r = http response object.
	
Quick logic to check the http response code.
Parameters:
r = http response object.
Quick logic to check the http response code . Parameters : r = http response object .
def checkResponse(r):
    acceptedResponses = [200, 201, 203, 204]
    if not r.status_code in acceptedResponses:
        print "STATUS: {status} ".format(status=r.status_code)
        print "ERROR: " + r.text
        sys.exit(r.status_code)
def checkResponse ( r ) : acceptedResponses = [ 200 , 201 , 203 , 204 ] if not r . status_code in acceptedResponses : print "STATUS: {status} " . format ( status = r . status_code ) print "ERROR: " + r . text sys . exit ( r . status_code )
Quick logic to check the http response code.
Quick logic to check the http response code .
"""
	Quick logic to check the http response code.

	Parameters:
		r = http response object.
	"""
r