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

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:!

NEW: Online Workhop Effective WebApps without Frameworks is also coming to: MUC Airport.

Airport MUC workshops: Web (SPA, PWAs, Offline, Desktop, Mobile) Applications Essentials and Effective Web Applications. No migrations. #usetheplatform

Podcast: and newsletter:

A book about rethinking Java EE Patterns


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


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

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