Handling 404 and Errors due to insufficient data