proxy_mock_response
Return a mock response for requests matching defined patterns, URL regex, or hostname, allowing simulation of HTTP responses with custom status and body.
Instructions
Return a mock response for matched requests. Creates a mock rule.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | HTTP method to match (optional) | |
| url_pattern | No | URL regex pattern to match (optional) | |
| hostname | No | Hostname to match (optional) | |
| status | Yes | Response status code | |
| body | No | Response body | |
| content_type | No | Content-Type header | application/json |
| priority | No | Rule priority (default: 10, high priority) |