code 500 should probably be 400.

  1. print(f”500: Queue empty when client {clientno} tried to return”)

  2. if it tries to return when the queue is empty