title: Designing Different JSON Responses from a WebService in case of Error
body: <p>I have an android client that searches for POI across a location.
  I currently parse the JSON using Jackson parser, so the return type of AsyncTask's DoInBackground is SearchResponse.
  But the problem happens when Error is returned from the server saying it could NOT connect to third party servers.
  In that case I want to return an Error something like ErrorResponse.
  One way is to implement a BaseResponse class and all responses (ErrorResponse,SearchResponse can extend from it) and have it as a return type.
  Is this the right way to do this? Can somebody suggest any better ways.</p>