站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > The J2EE 1.4 Tutorial

HTTP Responses - The J2EE 1.4 Tutorial

HTTP Responses

An HTTP response contains a result code, header fields, and a body.

The HTTP protocol expects the result code and all header fields to be returned before any body content.

Some commonly used status codes include:

  • 404: Indicates that the requested resource is not available
  • 401: Indicates that the request requires HTTP authentication
  • 500: Indicates that an error occurred inside the HTTP server that prevented it from fulfilling the request
  • 503: Indicates that the HTTP server is temporarily overloaded and unable to handle the request