What is the HTTP code for the wrong protocol

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.

+5
source share
1 answer

I think you are looking for: 403 Forbidden (at least that I would choose)

, . , . HEAD, , . , 404 (Not )

+4

All Articles