Fix http status on database authentication errors (#94)