A little Java-based application to mock any HTTP response status code. Allow getting in response at any request wanted HTTP Status code.
-
Get the latest docker image from packages
docker login https://docker.pkg.github.com -u GITHUB_USERNAME -p TOKEN_WITH_READ_AND_WRITE_ACCESS docker pull docker.pkg.github.com/alnat/httpstatusmocker/httpstatusmocker:latest
-
Run application with Docker
docker run -d -p 3000:8080 docker.pkg.github.com/alnat/httpstatusmocker/httpstatusmocker
-
Make the request
curl --request GET -sL \ --url 'http://localhost:3000\201?delay=1'