[Fixes #80373408] Return 400 on ValidationError
[Fixes #80402898] Refactor error handling
fixing merge issue
Merge branch 'rafkhan-mongoose-validation'