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

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -