コンテンツにスキップ
Aa

Static acknowledgement

このコンテンツはまだ日本語訳がありません。

Return a fixed reply when application processing is unnecessary. This direct response route returns “Request received” at /acknowledgement with status 200.

Limit: “Request received” does not prove submission validation, storage, or processing. If callers need a unique receipt or processing status, let the application provide it.

Visitor message: Request received

In the load balancer’s routes list, direct_response_route matches the path and route_direct_response defines the status and body.

Acknowledgement route source

{
"spec": {
"routes": [
{
"direct_response_route": {
"path": {
"path": "/acknowledgement"
},
"route_direct_response": {
"response_code": 200,
"response_body_encoded": "string:///PCFkb2N0eXBlIGh0bWw+PGh0bWwgbGFuZz0iZW4iPjxoZWFkPjxtZXRhIGNoYXJzZXQ9InV0Zi04Ij48bWV0YSBuYW1lPSJ2aWV3cG9ydCIgY29udGVudD0id2lkdGg9ZGV2aWNlLXdpZHRoIj48dGl0bGU+UmVxdWVzdCByZWNlaXZlZDwvdGl0bGU+PC9oZWFkPjxib2R5PjxtYWluPjxoMT5SZXF1ZXN0IHJlY2VpdmVkPC9oMT48cD5GNSBjdXN0b20gcmVzcG9uc2VzIHNob3djYXNlLjwvcD48L21haW4+PC9ib2R5PjwvaHRtbD4="
},
"http_method": "ANY"
}
}
]
}
}

Decoded preview (escaped):

<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><title>Request received</title></head><body><main><h1>Request received</h1><p>F5 custom responses showcase.</p></main></body></html>

Expected result: /acknowledgement returns 200 and “Request received”; / returns the normal application response. Compare the bodies because both paths can return 200.

Verified live example: View the acknowledgement.

See Maintenance and Missing and retired resources for direct replies that preserve an error status.