Skip to main content
blog title image

2 minute read - API Testing API Challenges

How To - HEAD todos 200

Jan 24, 2021

This post and video shows how to complete the challenge HEAD /todos (200) using Insomnia.

What are the API Challenges?

Our API Challenges Application has a fully functional cloud hosted API, and a set of challenges to work through.

HEAD /todos (200)

Issue a HEAD request on the /todos end point

  • HEAD request is basically a GET but doesn’t return the body
  • Use it to ‘ping’ an end point and see if it exists, or to check the Headers are working correctly
  • Usually returns a 200 (if it exists) or a 404 (if it doesn’t exist)

Basic Instructions

  • Issue a HEAD request to end point “/todos”
    • if running locally that would be
      • http://localhost:4567/todos
    • if running in the cloud that would be
  • The request should have an X-CHALLENGER header to track challenge completion
  • The response status code should be 200 because the end point exists
  • Compare the response with the response from GET /todos

Insomnia Details

> HEAD /todos HTTP/1.1
> Host:
> User-Agent: insomnia/2020.3.3
> X-CHALLENGER: x-challenger-guid
> Accept: */*
< HTTP/1.1 200 OK
< Connection: keep-alive
< Date: Thu, 27 Aug 2020 14:09:19 GMT
< Content-Type: application/json
< X-Challenger: x-challenger-guid
< Server: Jetty(9.4.z-SNAPSHOT)
< Via: 1.1 vegur

Overview Video

Patreon ad free version

Learn More and Start Testing