← HTTP Test API

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
GETRequest a test response.
HEADReturn headers without a response body.
POSTTest a POST request.
PUTTest a PUT request.
PATCHTest a PATCH request.
DELETETest 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

This is a public testing service. Delays are limited to 20 seconds. Please avoid excessive or automated high-volume requests.

Back to the API homepage