News for hackers. Stuff that matters.
Re:API Shouldn't Redirect HTTP to HTTPS by kijin on Tuesday May 28, 2024 @09:42PM (#40507437)
404 would also work, since the resource does not exist at the http: address.
Re:API Shouldn't Redirect HTTP to HTTPS by bruce511 on Wednesday May 29, 2024 @12:31AM (#40508485)
True, but 404 has trained us to look hard at the URL part, not the protocol part.

Whereas 403 or 400 are less likely to have so automated built-in handling on the client side.