rest: log errors with credentials
Use code in error messages