Handling Api Responses And Errors