Error handling: Model-level validations, proper error responses. (removed deprecated error template)