Jaguar-dart / client

Contains various packages for client side

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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,

I purposefully changed it in this commit: 335fcd1

Do you want it changed back?

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