Implement basic error handling for frontend