bosserver: Return error if key is bad