Added an error handler to the GET call.