@staticmethod<EOL><INDENT>def checkResponse(request):<DEDENT>
<EOL>if str(request.status_code)[<NUM_LIT:0>] not in ['<STR_LIT:2>', '<STR_LIT:3>']:<EOL><INDENT>w = str(request.text).split('<STR_LIT>')[<NUM_LIT:0>][<NUM_LIT:2>:]<EOL>raise InvalidRequest(w)<EOL><DEDENT>return<EOL>
Returns if a request has an okay error code, otherwise raises InvalidRequest.