Hi Kartik,
refer this thread Success/Error/Info Message in return of Odata Service response from ECC
Using this thread, you will be able to bring the message to response header. once it is done, you can follow above code to show it on front end.
Regards,
Chandra