This is a simple docker image intended to be used as a default backend to an nginx proxy.
With opcode
$ op serve
or without
$ cd app && rackup -p 3000 -o 0.0.0.0
or with docker-compose
$ docker-compose up
or with plain docker
$ docker run --rm -it -p 3000:3000 dannyben/fallback
Then you can test HTTP codes by either passing them in the path:
$ open http://localhost:3000/503
or by sending the X-Code
header:
$ curl -v http://localhost:3000 -H "X-Code: 503"