rest - 302 Redirect for RESTful API -


i setting restful api server, , requiring clients use https. best set block port 80 , return 'not found' requests http, or should redirect of these requests https? setup web servers this, concern how clients handle 302 redirect in restful calls. there best practice or recommended way handle this?

thanks!

a common approach here respond status code 403 forbidden , specify in response body secure connection required.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -