See Also. MDN on HTTP Strict Transport Security; RFC6797: HTTP Strict Transport Security (HSTS) HTTP Redirections. Websites may continue to listen on port 80 (HTTP) so that users do not get connection errors when typing a URL into their address bar, as browsers currently connect via HTTP for their initial request.
Data URIs - 405 Method Not Allowed - HTTP | MDN - MDN Web Docs
@Produces({"text/plain","application/xml","application/json"})
change this to
@Produces("text/plain")
and try,