modify api data for multiple errors

Signed-off-by: Manish Johari <manish.johari@kiwitech.com>