Java Reference
In-Depth Information
Code and message
Meaning
HttpURLConnection constant
204 No Content
The server has successfully processed the request but has no
information to send back to the client. This is normally the result of
a poorly written form-processing program on the server that accepts
data but does not return a response to the user.
HTTP_NO_CONTENT
205 Reset Content
The server has successfully processed the request but has no
information to send back to the client. Furthermore, the client should
clear the form to which the request is sent.
HTTP_RESET
206 Partial Content
The server has returned the part of the resource the client requested
using the byte range extension to HTTP, rather than the whole
document.
HTTP_PARTIAL
226 IM Used
Response is delta encoded.
N/A
3XX Redirection
Relocation and redirection.
300 Multiple Choices
The server is providing a list of different representations (e.g.,
PostScript and PDF) for the requested document.
HTTP_MULT_CHOICE
301 Moved
Permanently
The resource has moved to a new URL. The client should automatically
load the resource at this URL and update any bookmarks that point
to the old URL.
HTTP_MOVED_PERM
302 Moved
Temporarily
The resource is at a new URL temporarily, but its location will change
again in the foreseeable future; therefore, bookmarks should not be
updated. Sometimes used by proxies that require the user to log in
locally before accessing the Web.
HTTP_MOVED_TEMP
303 See Other
Generally used in response to a POST form request, this code indicates
that the user should retrieve a resource from a different URL using
GET .
HTTP_SEE_OTHER
304 Not Modified
The If-Modified-Since header indicates that the client wants the
document only if it has been recently updated. This status code is
returned if the document has not been updated. In this case, the client
should load the document from its cache.
HTTP_NOT_MODIFIED
305 Use Proxy
The Location header field contains the address of a proxy that will
serve the response.
HTTP_USE_PROXY
307 Temporary
Redirect
Similar to 302 but without allowing the HTTP method to change.
N/A
308 Permanent
Redirect
Similar to 301 but without allowing the HTTP method to change.
N/A
4XX
Client error.
400 Bad Request
The client request to the server used improper syntax. This is rather
unusual in normal web browsing but more common when debugging
custom clients.
HTTP_BAD_REQUEST
401 Unauthorized
Authorization, generally a username and password, is required to
access this page. Either a username and password have not yet been
presented or the username and password are invalid.
HTTP_UNAUTHORIZED
Search WWH ::




Custom Search