Adding some basic error handling from the backend server