Hacker News new | ask | show | jobs
by SadWebDeveloper 3326 days ago
Nop.. it isn't good, secure endpoints for API's shouldn't be exposed in plain, an error should be raised when a developer/app tries to contact via HTTP rather than HTTPs.
1 comments

Is 404 sufficient?
Depends on your choice, personally i would choose between 410 or 501 but whatever you choose, just don't allow an implicit redirect with any of the 301/302 codes.