Skip to main content
Feedback

Request Content Limit policy

You can use the request-content-limit policy to specify the maximum allowed request content length. The policy defines this limit in bytes and compares it to thecontent-length header of the incoming request.

If you use this policy and the request lacks a content-length header, the policy rejects the call unless the request also has a non-empty transfer-encoding header.

Timing

On RequestOn Response
X

Configuration

PropertyRequiredDescriptionTypeDefault
limityesMaximum length of request content allowed, specified in bytes.integer

Example

"request-content-limit": {
"limit": 1000
}

Errors

CodeMessage
400The limit from the configuration is not correct.
413Incoming HTTP request payload exceeds the size limit.
411The HTTP request is not chunked and does not specify the Content-Length header.
On this Page