Improve Api validation error parsing so that base errors can also be customized