API: Throwing a more specific error message when the client tries to create empty...