HTTP Status Code Test Service: statustest

statustest is a service which responds with a HTTP status code sent as HTTP status header, e.g.


curl -i -H"status:205" http://localhost:8080/statustest/resources/statuses

responds with:

HTTP/1.1 205 Reset Content
Server: Payara Micro #badassfish
Date: Sun, 27 Nov 2016 09:08:20 GMT


statustest comes as a 4.1 kB WAR and is also available as docker image: docker run -d -p 8080:8080 airhacks/statustest from http://hub.docker.com/u/airhacks.

JAX-RS rulz was tested with statustest, as well as, the other way round. Statustest was also used to test error behaviour of various HTTP JavaScript libraries in reactjs and angular 2 projects.

See you at Java EE Workshops at Munich Airport, Terminal 2, particularly at: Java EE Testing. Is MUC too far? Checkout the online version: javaeetesting.com!


Cloudy Jakarta EE and MicroProfile: Microservices, Clouds and Beyond Jakarta EE / MicroProfile airhacks workshops at MUC airport, Winter Edition

airhacks.fm the podcast:

Stay in touch: airhacks.news.

Comments:

Hi Adam,
I can't seem to find a use case where I could be needing this. Do you care on elaborating on it at the next Airhacks.tv?

Regards,
Daniel.

Posted by Daniel W. on November 29, 2016 at 02:42 PM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
Online Workshops
realworldpatterns.com
...the last 150 posts
...the last 10 comments
License