← Back to Home

Mock Response

/mock
Create custom mock responses with specified status, body, and headers.
Try it now

Parameters

status query
HTTP status code (default: 200)
body query
Response body text
header_* query
Custom headers (e.g., header_X-Custom=value)

Examples

curl
curl "https://tcpdata.com/mock?status=418&body=I'm%20a%20teapot&header_X-Custom=test"