Static Response Overview

Static Response Overview An architecture diagram generated by Archify. Client · Sends HTTP request · Architecture component Client Sends HTTP request Envoy Proxy · directResponse / EnvoyFilter · Architecture component · Condition match Envoy Proxy directResponse / EnvoyFilter Condition match Backend Service · Reached only when no match · Architecture component Backend Service Reached only when no match HTTP request Static response on match Proxy when no match Legend Backend External

Static response use cases

  • • Maintenance mode: return 503 Service Unavailable
  • • Health check endpoint: return 200 OK
  • • Custom error pages: JSON or HTML response
  • • Quick rejection: return 401 Unauthorized immediately on auth failure