Hacker News new | past | comments | ask | show | jobs | submit login

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).



Dunno 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.


Yeah, 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: