Does Java have a complete enum for HTTP response codes?

I don’t think there’s one that’s complete in the standard Java classes; HttpURLConnection is missing quite a few codes, like HTTP 100/Continue.

There’s a complete list in the Apache HttpComponents, though:
org.apache.http.HttpStatus (replaced org.apache.commons.HttpClient.HttpStatus from Apache Http Client, which reached end of life)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)