Skip to content

Instantly share code, notes, and snippets.

@himank
Created January 14, 2016 21:20
Show Gist options
  • Save himank/2bf076ab0b3b5c93c038 to your computer and use it in GitHub Desktop.
Save himank/2bf076ab0b3b5c93c038 to your computer and use it in GitHub Desktop.
Before:
HTTP/1.1 500 Server Error
Date: Thu, 14 Jan 2016 20:26:03 GMT
Cache-Control: must-revalidate,no-cache,no-store
Content-Type: text/html; charset=ISO-8859-1
Content-Length: 550
Connection: close
Server: Jetty(9.2.5.v20141112)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 </title>
</head>
<body>
<h2>HTTP ERROR: 500</h2>
<p>Problem accessing /flurry/v1/retention. Reason:
<pre> javax.servlet.ServletException: com.fasterxml.jackson.databind.JsonMappingException: Could not resolve type id 'timeseries1' into a subtype of …...
at [Source: HttpInputOverHTTP@1a5e7a1; line: 1, column: 6]</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>
After:
HTTP/1.1 400 Bad Request
Date: Thu, 14 Jan 2016 19:48:39 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Server: Jetty(9.2.5.v20141112)
{"Error":"Could not resolve type id ‘timeseries1' into a subtype of ….. at [Source: HttpInputOverHTTP@2b9d115b; line: 1, column: 6]"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment