def _SetRangeRequestNotSatisfiable(response, blob_size):
 response.status_code = 416
 response.status_message = 'Requested Range Not Satisfiable'
 response.body = cStringIO.StringIO('')
 response.headers['Content-Length'] = '0'
 response.headers['Content-Range'] = ('*/%d' % blob_size)
 del response.headers['Content-Type']

def _SetRangeRequestNotSatisfiable ( response , blob_size ) : response . status_code = 416 response . status_message = 'Requested Range Not Satisfiable' response . body = cStringIO . StringIO ( '' ) response . headers [ 'Content-Length' ] = '0' response . headers [ 'Content-Range' ] = ( '*/%d' % blob_size ) del response . headers [ 'Content-Type' ]
short circuit response and return 416 error .