414 URI 太長
HTTP **414 URI 太長** 客戶端錯誤響應 狀態碼錶示客戶端請求的 URI 超過伺服器願意解釋的長度。
在某些罕見的情況下,可能會發生此錯誤
某些系統將 414 URI 太長 實現為 414 Request-URI 太大。
狀態
http
414 URI Too Long
示例
使用 GET 提交表單
在以下示例中,HTML <form> 方法 錯誤地使用了 get 而不是 post。大量表單資料被附加到表單的 action 屬性中指定的 URL,並作為 GET 請求傳送。
http
GET /search?feedback=it+was+the+best+of+times+it+was+the+worst+of+times… HTTP/1.1
Host: example.com
此請求達到特定伺服器的 URI 長度限制,並作為響應傳送 414。
http
HTTP/1.1 414 URI Too Long
Content-Type: text/html; charset=UTF-8
Date: Fri, 28 Jun 2024 11:40:58 GMT
Content-Length: 1234
<!doctype html>
<head>
<title>414 - URI Too Long</title>
</head>
<body>
<h1>414 - URI Too Long</h1>
<p>The URI provided was too long for the server to process.</p>
</body>
</html>
規範
| 規範 |
|---|
| HTTP 語義 # status.414 |