500 error returned on invalid table name

Querying an invalid table name returns 500 error
(Invalid response from server), but it should actually
return 404 (Not Found)
This bug also handle querying for invalid status list.

Change-Id: I1f953f8211883e4a850777ecdf23f28f2b7a20b5
Closes-Bug: #1375463
Merge "500 error returned on invalid table name"