def getRspErrorCode(cls, rsp):
        if rsp['stat'] == "fail":
            return rsp.err[0]['code']

        return 0
Return the error code of a response, or 0 if no error.
dataset/ETHPy150Open sightmachine/SimpleCV/SimpleCV/MachineLearning/query_imgs/flickrapi2.py/FlickrAPI.getRspErrorCode