return json responses for errors caught by jetty
Merge branch 'upstream-rdap' of https://github.com/APNIC-net/whois into upstream-rdap