4xx Client Error

HTTP 414 URI Too Long

The URI requested by the client is longer than the server is willing to interpret. This can happen when query strings are excessively long, often from improper form encoding or redirect loops.

Common Causes

  • Extremely long query string in a GET request
  • Redirect loop appending parameters on each iteration
  • Form data sent via GET instead of POST
  • Encoded data making the URL excessively long

How to Fix

  1. 1Use POST with a request body instead of long query strings
  2. 2Check for redirect loops causing URL growth
  3. 3Shorten or paginate query parameters
  4. 4Increase server's URI length limit if appropriate

Example

HTTP 414 URI Too Long
GET /search?q=very+long+query+string+that+goes+on+and+on...

→ 414 URI Too Long

Related Client Error Codes