Add HTTP error handler and unauthorized exception