Instead, raise ValueError and have API return 400 Bad Request.
Instead, raise ValueError and have API return 400 Bad Request.