Improve API error message to be more descriptive

Raise an exception with both the original message
and the validation errors.