I want to return an HTTP code for a user who is typing HTTP in an HTTPS domain or vice versa. Which HTTP code is suitable for this?
I do not want to redirect to the correct protocol, as this will contribute to the creation of bad / insecure links, and setting up my server does not allow to disable the protocol in the domains.
I think 400, 403, 406 or 500.
source
share