Java Reference
In-Depth Information
Table 12-5. Common HTTP Status Codes
Status Code
Meaning
100
Request headers have been received; the client may send the request body.
101
Switching protocols.
200
Standard response for successful HTTP requests.
201
The request has been completed and has resulted in a new resource.
202
The request has been accepted for processing, but the processing has not been
completed.
204
No content.
301
Moved permanently; this and all future requests should be directed to the
given URL.
302
Moved temporarily; this request should be directed to the given URL.
303
The response can be found under another URL using a GET method request.
304
The resource has not been modified since last requested.
400
The request contains bad syntax or cannot be completed.
401
Authentication of the user agent is possible but did not occur.
403
The request was legal, but the server is refusing to respond to it.
404
The requested resource could not be found.
405
A request was made of a resource using a method not supported by that resource.
500
An internal server error occurred while handling the request.
503
The service is presently unavailable.
505
The HTTP version used is not supported.
509
The bandwidth limit was exceeded.*
*This is not an official status code, but is returned by many servers.
Using HTTP with the GCF
HTTP's ability to provide metadata with requests for service using standard verbs lets you
define a wide variety of services that a remote system can provide besides just returning
pieces of a web page. Often, though, Java ME devices need only the ability to read remote
content. You can download content using the GCF and a ContentConnection , as shown in
Listing 12-8.
 
Search WWH ::




Custom Search