Improve unauthorized error messages.