HTTP Status Test Service
docker run -d -p 8080:8080 airhacks/statustest
or
download the latest WAR (4 kB) and deploy it on a Java EE 7 application server running on Java 8.
The status
header sets the expected HTTP status code and sends it back
curl -i -H"status:205" http://localhost:8080/statustest/resources/statuses
response:
HTTP/1.1 205 Reset Content Server: Payara Micro #badassfish Date: Sun, 27 Nov 2016 09:08:20 GMT
The requests body is sent back as response:
curl -i -H"status:201" -XPOST -d'input' http://localhost:8080/statustest/resources/statuses
response:
HTTP/1.1 201 Created
Server: Payara Micro #badassfish
Content-Type: text/plain
Date: Sun, 27 Nov 2016 09:11:38 GMT
Content-Length: 5
input
Statustest is installed with Payara Micro S2I:
See you at airhacks.com