API documentation
Use this API to test HTTP clients and integrations. Configure a response status code, delay the response, and optionally set its Content-Type.
Endpoint
https://api.waageit.no/test/response
Supported methods
| Method | Description |
|---|---|
GET | Request a test response. |
HEAD | Return headers without a response body. |
POST | Test a POST request. |
PUT | Test a PUT request. |
PATCH | Test a PATCH request. |
DELETE | Test a DELETE request. |
Query parameters
| Parameter | Default | Description |
|---|---|---|
status |
200 |
HTTP status code to return. Only codes explicitly supported by this service are accepted. |
delay |
0 |
Delay before responding, in milliseconds. Maximum: 20000. |
contentType |
Not set |
Optional response Content-Type:
application/json,
text/plain, or
application/xml.
|
Examples
Default response
GET https://api.waageit.no/test/response
Return HTTP 201
GET https://api.waageit.no/test/response?status=201
Return HTTP 404
GET https://api.waageit.no/test/response?status=404
Delay the response by one second
GET https://api.waageit.no/test/response?delay=1000
Return HTTP 503 after two seconds
GET https://api.waageit.no/test/response?status=503&delay=2000
Set a response Content-Type
GET https://api.waageit.no/test/response?contentType=application/json
Use POST in curl
curl -i -X POST "https://api.waageit.no/test/response?status=201"
Response behavior
- The response body is empty.
- The requested delay is applied before the response is sent.
- Invalid parameters return
400 Bad Request. - Unsupported HTTP methods return
405 Method Not Allowed. - Responses include
Cache-Control: no-store. - Responses include
X-Content-Type-Options: nosniff.
This is a public testing service. Delays are limited to 20 seconds. Please avoid excessive or automated high-volume requests.