I want to write some code i can run in the bash that takes a list of URL's and checks if they return a 404. If the site is not returning a 404 i need the url to be written to the output list.
So in the end i should have a list with working sites. I do not know how to realize the code. This looks like something that could work right?: How to check if a URL exists or returns 404 with Java?