[38;5;215m[1m@[0m[1mhttp[0m [2m· HTTP status codes, explained[0m [38;5;215m[1mHTTP/1.1 413 Content Too Large[0m [38;5;215m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[0m [2m4xx · Client error[0m The request body is bigger than the server allows. [38;5;215m[1mWHAT IT MEANS[0m [2m────────────────────────────────────────────────────────────[0m The request body is larger than the server is willing or able to process. If the limit is temporary, the server may add Retry-After. It was called "Payload Too Large" and, before that, "Request Entity Too Large". [38;5;215m[1mWHY YOU'RE SEEING IT[0m [2m─────────────────────────────────────────────────────[0m [38;5;215m→[0m Uploading a file over the server's limit. nginx defaults to 1 MB (client_max_body_size). [38;5;215m→[0m Platform limits, such as Cloudflare's 100 MB request body limit on the free plan. [38;5;215m→[0m Accidentally sending a huge JSON body. [38;5;215m[1mHOW TO FIX IT[0m [2m────────────────────────────────────────────────────────────[0m [38;5;215m→[0m Raise the limit at every layer: CDN, proxy, app server and framework. [38;5;215m→[0m Upload large files in chunks or straight to object storage with a signed URL. [38;5;215m[1mEXAMPLE RESPONSE[0m [2m─────────────────────────────────────────────────────────[0m [38;5;215mHTTP/1.1 413 Content Too Large[0m [2mContent-Type: text/html[0m [2mConnection: close[0m [2m[0m [2m