Just a thought, but responding with HTTP status 404 (Not found) might be more sensible in case the platform doesn't support getting a thread dump.

* http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletResponse.html#SC_NOT_FOUND