Error handling if route end point returns success, but there is an error