This code is a wrap layer useful for capture and display errors early when you work with web apis