improved error handling

handle of requests without api identifier