Changes to error logging and HTTP status codes for user management