[API] Added 'no content' exception in check_return in API_tools file