Network and internet

Check a website's status code

See the three-digit reply a web address gives, like 200 for fine or 404 for not found.

Fill these in once
  1. Show just the status code
    Terminal
    curl -s -o /dev/null -w "%{http_code}\n" https://laymanterms.dev/

    200 means fine. 301 or 302 means it moved. 404 means not found. 500 or 503 means the site has a problem.

Check it worked

  1. See all the reply headers
    Terminal
    curl -sI https://laymanterms.dev/
  1. Show just the status code
    Terminal · Ubuntu / Debian
    curl -s -o /dev/null -w "%{http_code}\n" https://laymanterms.dev/

    200 means fine. 301 or 302 means it moved. 404 means not found. 500 or 503 means the site has a problem.

Check it worked

  1. See all the reply headers
    Terminal · Ubuntu / Debian
    curl -sI https://laymanterms.dev/
  1. Show just the status code
    PowerShell
    curl.exe -s -o NUL -w "%{http_code}" https://laymanterms.dev/

    200 means fine. 301 or 302 means it moved. 404 means not found. 500 or 503 means the site has a problem.

Check it worked

  1. See all the reply headers
    PowerShell
    curl.exe -sI https://laymanterms.dev/

New to status codes? I explain it in plain English on Layman Terms.