Request Size Limit
On this page
Overview
Use the Request Size Limit policy to restrict requests based on the size of their content.
Policy Execution Order
The Request Size Limit policy executes early in request processing to limit the effects of oversized requests.
Expression Enabled Fields in API Policies All expression enabled fields take expressions from the SnapLogic Expression Language and the API Policy Manager functions.
Settings
Parameter Name | Description | Default Value | Example |
---|---|---|---|
Label | Required. The name for the API policy. | Request Size Limit | SizeLimit_DevOrg |
When this policy should be applied | An expression enabled field that determines the condition to be fulfilled for the API policy to execute. | True | request.method == "POST" |
Max Request Size | The maximum number of bytes allowed. | 10,000,000 (10 MB) | 25,000,000 |
If the request has content (for example, a POST or PUT request) and the content length is missing or is larger than the configured limit, the request is rejected.
HTTP Response Codes
Code | Meaning |
---|---|
400 | The content length is not a number. |
411 | The content length is missing or invalid. |
413 | The content-length is bigger than the configured size. |
Have feedback? Email documentation@snaplogic.com | Ask a question in the SnapLogic Community
© 2017-2024 SnapLogic, Inc.