Add error handler and overlay message for 502