mercadolibre / python-sdk

MercadoLibre's Python SDK
131 stars 111 forks source link

Using response.ok instead of response.status_code == requests.codes.ok #30

Closed pmolina closed 5 years ago

pmolina commented 5 years ago

http://docs.python-requests.org/en/master/api/#requests.Response.ok

response.status_code == requests.codes.ok checks only for 200 OK, while response.ok returns True if the status code is not >= 400.