I've been wondering about this for a while, but cannot find any articles on it. When your website contains a dead link to a resource that is either not there any more, or was never there to begin with, do you get penalized? As I see it, there are some different use cases, and I doubt they'll all be dealt with equally.
- Linking to other web pages
- Linking to resources (images, JS, CSS etc.)
- Dead links to use in JS (e.g. faulty Ajax calls)
- Dynamically added links to dead resources (e.g. when an Ajax call is made, and the content contains a link that is dead)
How do search engines deal with these issues? Are they neglected, and simply not followed or does the containing website get a penalty?