airbnb / mavericks

Mavericks: Android on Autopilot
https://airbnb.io/mavericks/
Apache License 2.0
5.83k stars 500 forks source link

HTTP Status 202 gives me Async Fail #120

Closed qbait closed 5 years ago

qbait commented 5 years ago

I'm using Retrofit, it gives me a response with status code 202. However, when I'm watching my Async request it gives me Fail?

I was sure that status codes from 200 to 300 are by default Success? What's the best way to make it return Success?

gpeal commented 5 years ago

@qbait MvRx doesn't know anything about http status codes. It just maps onError in the rx stream to fail so I'd suggest checking your Retrofit/okhttp configuration to see why that is happening.