proxy_mock_response
Create a mock rule to return a custom HTTP response for requests that match optional criteria like method, hostname, or URL pattern.
Instructions
Return a mock response for matched requests. Creates a mock rule.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Response body | |
| method | No | HTTP method to match (optional) | |
| status | Yes | Response status code | |
| hostname | No | Hostname to match (optional) | |
| priority | No | Rule priority (default: 10, high priority) | |
| url_pattern | No | URL regex pattern to match (optional) | |
| content_type | No | Content-Type header | application/json |