All APIs should have validation and error handling for improper inputs.