TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Accepts only HEAD and answers with headers only

HEADhttps://api.testingapis.com/api/methods/head

Look for the X-Method and X-Message response headers.

Responses

200
Empty body with X-Method: HEAD.
405
Any other verb.

Example

Request
curl -X HEAD "https://api.testingapis.com/api/methods/head"
Response200 OK
(empty body)