api: fix response for unknown id