Serialize response into Java object.
Process it and show error message.
Cover with unit tests.