Retrofit status code 2xx
jaumard opened this issue · comments
Currently retrofit take all status as error except 200, it should take between 200 < 300 as a good response.
root cause is resty : https://github.com/Jaguar-dart/client/blob/master/resty/lib/src/jaguar_resty_base.dart#L387
Hi :)
Yes for me it was correct previously as say in the doc 2xx: These codes indicate success. The body section if present is the object returned by the request. It is a MIME format object. It is in MIME format, and may only be in text/plain, text/html or one fo the formats specified as acceptable in the request.
@tejainece let me know when you revert and deploy this please :)
Thanks
fixed