Return custom error for an authentication error.
Fix format.