Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. HTTP
  3. Reference
  4. HTTP response status codes
  5. 413 Content Too Large

413 Content Too Large

The HTTP413 Content Too Largeclient error response status code indicates that the request entity was larger than limits defined by server.The server might close the connection or return aRetry-After header field.

Prior toRFC 9110 the response phrase for the status wasPayload Too Large.This message is still widely used.

Status

http
413 Content Too Large

Examples

File upload limit exceeded

The following example shows what the client may send when an<input type="file"> element includes an image on form submission withmethod="post":

http
POST /upload HTTP/1.1Host: example.comContent-Type: multipart/form-data; boundary=----Boundary1234Content-Length: 4012345------Boundary1234Content-Disposition: form-data; name="file"; filename="myImage.jpg"Content-Type: image/jpeg\xFF\xD8\xFF\xE0\x00...(binary data)------Boundary1234--

The server may reject the upload if there is a restriction on the maximum size of files it will process, and the response body includes amessage with some context:

http
HTTP/1.1 413 Content Too LargeContent-Type: application/jsonContent-Length: 97{  "error": "Upload failed",  "message": "Maximum allowed upload size is 4MB",}

Specifications

Specification
HTTP Semantics
# status.413

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp