Fix Error handling for dummy API