khellang / Middleware

Various ASP.NET Core middleware
MIT License
806 stars 110 forks source link

Links to httpstatuses domain sent elsewhere #167

Closed lonix1 closed 2 years ago

lonix1 commented 2 years ago

This library replaces the reference for status codes to links to https://httpstatuses.com/xxx, which is quite helpful.

Has anyone noticed that lately that those links go to a different domain? The above domain was probably sold.

For example, a link to https://httpstatuses.com/401 goes to https://www.webfx.com/web-development/glossary/http-status-codes/what-is-a-401-status-code/.

If that domain belongs to you @khellang then I've no problem with it, it's your right as the library owner after all. Just curious. :smiley:

khellang commented 2 years ago

Has anyone noticed that lately that those links go to a different domain? The above domain was probably sold.

Hmm, that's not good. Looks like it's still providing the relevant information (at least it's not redirecting to some porn site 😅), but we should definitely look at some other resource. Any suggestions?

lonix1 commented 2 years ago

LOL - it feels so.... "Wordpressy" - a plugin you've used for years is sold and redirects to porn.

The best is probably MDN, which also links to each RFC. https://developer.mozilla.org/en-US/docs/Web/HTTP/Status e.g. https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200

khellang commented 2 years ago

Ah, I was thinking about MDN, but didn't know they had a URL based on the status code as an integer. That could probably work. I would be cool if they had some shorter, culture-neutral URLs though.

khellang commented 2 years ago

Looks like https://developer.mozilla.org/docs/Web/HTTP/Status/200 will redirect you to your preferred culture 😄

blogcraft commented 2 years ago

Why not use datatracker.ietf.org/doc/html/rfc7231 URLs to point to the correct status code doc?

I have a Gist that does that: URL Docs

lonix1 commented 2 years ago

That is a good option, but MDN is more friendly and more helpful in most cases. And it links to the RFC if you need to do more digging. Most people want a TL;DR.

khellang commented 2 years ago

Yeah, and some status codes are not part of 7231, like 206, 308, 401, 412, 422 etc. MVC has worked around this by linking to RFC7235 and RFC4918, but it would be nice if there was just a single site that had a TL;DR for all status codes with links to explore more details.

khellang commented 2 years ago

Maybe I should create my own site that aggregates them all, like the old httpstatuses.com, with a tiny ad at the bottom for some extra income 😜

lonix1 commented 2 years ago

A nice idea, and then when it gets big enough, sell it to a porn site.

blogcraft commented 2 years ago

image

Lol it remembers me of this.

khellang commented 2 years ago

Closed with #173. Thanks @collinstevens! 😘

khellang commented 2 years ago

Pushed to NuGet.org as v6.4.2 😁