URI Too Long
4xx Client Error
Last updated:
The URL is longer than the server is willing to interpret.
Description
Usually caused by clients encoding large payloads into query strings. The fix is to use POST with a body instead.
When to use
Rare — most servers allow URLs up to 8KB or more. Return 414 if you have strict URL limits.
Specification
RFC 9110 §15.5.15
Examples
HTTP response
HTTP/1.1 414 URI Too Long
Content-Type: application/json
{"error":"URI Too Long"}Node.js (Express)
res.status(414).json({ error: "URI Too Long" });Go (net/http)
w.WriteHeader(http.Status414)
Python (Flask)
return jsonify({"error": "URI Too Long"}), 414Related status codes
All 4xx codes
400 Bad Request401 Unauthorized403 Forbidden404 Not Found405 Method Not Allowed406 Not Acceptable408 Request Timeout409 Conflict410 Gone411 Length Required412 Precondition Failed413 Payload Too Large414 URI Too Long415 Unsupported Media Type418 I'm a teapot422 Unprocessable Entity425 Too Early428 Precondition Required429 Too Many Requests431 Request Header Fields Too Large451 Unavailable For Legal Reasons