Operation response too large
Identifiers
Section titled “Identifiers”| Field | Value |
|---|---|
| Type URI | https://echo.labstack.com/pro/problems/operation-response-too-large |
| Code | operation_response_too_large |
| HTTP status | 500 |
| HTTP status | English title |
|---|---|
| 500 | Internal Server Error |
When it occurs
Section titled “When it occurs”The handler ran, but its response exceeded MaxResponseBytes or could not be buffered. The default limit is 1 MiB. Execution could neither store nor return the response. A business effect may already have happened.
Client handling
Section titled “Client handling”Do not repeat the operation automatically. Give operation_ref to an operator, who can find out whether the operation applied. A new key is safe only when safe_new_key is true.
Example response
Section titled “Example response”If your application installs a custom handler, the body may differ.
HTTP/1.1 500 Internal Server ErrorContent-Type: application/problem+jsonCache-Control: no-store
{ "code": "operation_response_too_large", "operation_ref": "AAAAAAAAAAAAAAAAAAAAAAAA", "operation_state": "failed", "safe_new_key": false, "status": 500, "title": "Internal Server Error", "type": "https://echo.labstack.com/pro/problems/operation-response-too-large"}Server correction
Section titled “Server correction”Keep the handler’s response under MaxResponseBytes. Check it together with the journal’s MaxResultBytes. An oversized response does not prove the effect did not happen.
Response fields
Section titled “Response fields”Execution middleware
Section titled “Execution middleware”type(string, always): The exact type URI above.title(string, always): The HTTP status text.status(integer, always): The HTTP status of the response.code(string, always): The stable code above.operation_ref(string, always): An opaque reference to the operation. It is set only afterReplayCheckallows the request, and is empty when no operation was found. Use it to look up the operation; it does not grant access.operation_state(string, always):started,uncertain,completedorfailed; empty when no operation was found.safe_new_key(boolean, always):trueonly when the client may retry with a new key. It is alwaysfalsewhenoperation_refandoperation_stateare empty.
Headers:
Cache-Control(always):no-storeon every execution problem.
Notes:
- Execution removes any
Idempotent-Replayedheader from problem responses.
Related behavior
Section titled “Related behavior”See execution for operation state and replay rules.