How to map a http 200 with a nested status code of 400? #46
Unanswered
ColtonIdle
asked this question in
Q&A
Replies: 1 comment
-
|
My case is slightly different: It's an API that always returns 200 with a fixed response body structure: when the status field is 0 it's an error, otherwise it's a success. Hope this helps. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a response that comes back as an http 200 with the following body
This actually goes through the success case of my when statement when using eitherNet. According to the docs I think I want to use this snippet
but I'm honestly not sure how best to peak into the json to see if it has a code 404. I'd appreciate any pointers. Thanks
Beta Was this translation helpful? Give feedback.
All reactions