Mnemonic Constant | Code | Default Message | Meaning |
---|---|---|---|
SC_OK | 200 | OK | The client's request was successful, and the server's response contains the requested data. This is the default status code. |
SC_NO_CONTENT | 204 | No Content | The request succeeded but there was no new response body to return. Browsers receiving this code should retain their current document view. This is a useful code for a servlet when it accepts data from a form but wants the browser view to stay at the form, as it avoids the "Document contains no data" error message. |
SC_MOVED_PERMANENTLY | 301 | Moved Permanently | The requested resource has permanently moved to a new location. Future references should use the new URL in requests. The new location is given by the Location header. Most browsers automatically access the new location. |
SC_MOVED_TEMPORARILY | 302 | Moved Temporarily | The requested resource has temporarily moved to another location, but future references should still use the original URL to access the resource. The new location is given by the Location header. Most browsers automatically access the new location. |
SC_UNAUTHORIZED | 401 | Unauthorized | The request lacked proper authorization. Used in conjunction with the WWW-Authenticate and Authorization headers. |
SC_NOT_FOUND | 404 | Not Found | The requested resource was not found or is not available. |
SC_INTERNAL_SERVER_ERROR | 500 | Internal Server Error | An unexpected error occurred inside the server that prevented it from fulfilling the request. |
SC_NOT_IMPLEMENTED | 501 | Not Implemented | The server does not support the functionality needed to fulfill the request. |
SC_SERVICE_UNAVAILABLE | 503 | Service Unavailable | The service (server) is temporarily unavailable but should be restored in the future. If the server knows when it will be available again, a Retry-After header may also be supplied. |
Http状态码
最新推荐文章于 2024-01-16 10:33:26 发布