4 ms·
I've seen APIs that always return 200 because the iOS app that was the API consumer couldn't handle non-200 responses (something about it being harder to get th
by nitrogen 11y ago
I've seen APIs that always return 200 because the iOS app that was the API consumer couldn't handle non-200 responses (something about it being harder to get the response body IIRC).
- oxguy3 11y agoDunno bout iOS but I know Java's built-in HTTP library requires you do something like `if (status<400) { stream = getResponseStream() } else { stream = getErrorStream()}`. It's so silly.
- paulddraper 11y agoYeah, Java's HTTP stuff is barely usable. If you are doing more then playing around, use singing better. Apache httpclient is a very well constructed library. And there are bunch of other smaller ones.