Skip to content

Tuts

Generate HTTP Response with custom Status Code

During an assessment, I needed a web server which would serve a 204 HTTP response. Is is not so common or easy to find it, so I decided to create one for when needed, which I would be able to use it offline.
Just save the snippet below as a python file and change the status code. When loading the page, it will serve you the status code needed.

Read More »Generate HTTP Response with custom Status Code