Questions tagged [http-status-code-308]

The HTTP response status code 308 Permanent Redirect is a way of performing a redirection which does not allow the HTTP method to change

The request, and all future requests should be repeated using another URI. 307 and 308 (as proposed) parallel the behaviours of 302 and 301, but do not allow the HTTP method to change. So, for example, submitting a form to a permanently redirected resource may continue smoothly.

18 questions
259
votes
2 answers

What's the difference between HTTP 301 and 308 status codes?

What's the difference between HTTP 301 and 308 status codes? 301 (Moved Permanently): This and all future requests should be directed to the given URI. 308 (Permanent Redirect): The request and all future requests should be repeated using another…
21
votes
2 answers

What's the deal with HTTP status code 308?

An IETF RFC draft The Hypertext Transfer Protocol (HTTP) Status Code 308 (Permanent Redirect) defines HTTP status 308 as Permanent Redirect. It should, of course, be noted that this is a draft document and contains in its document header the text…
Chris Morgan
  • 86,207
  • 24
  • 208
  • 215
7
votes
3 answers

Which browsers support 307/308 redirects and how do they handle them?

307 & 308 redirects (https://www.rfc-editor.org/rfc/rfc7538) is accepted by most modern browsers. However upon google-ing a lot, I am unable to find a list of browser versions that support 307/308 redirects. Many of the posts like: What's the deal…
3
votes
2 answers

htaccess permanent redirect throws Internal Server Error

In the mod_rewrite documentation for Apache 2.2, the RewriteRule [R] flag states: Any valid HTTP response status code may be specified, using the syntax [R=305], with a 302 status code being used by default if none is specified. The status code…
rink.attendant.6
  • 44,500
  • 61
  • 101
  • 156
2
votes
2 answers

Nextjs - change permanent redirect status code from 308 to 301

I'm using next.config in order to redirect non www requests. redirects: async () => [ { source: '/:path*', has: [{ type: 'host', value: 'example.com' }], destination: 'https://www.example.com'/:path*', permanent: true, }, ] Now as you…
2
votes
0 answers

Google App Engine respond with the code 308

Problem 1.I have a sns service which is running on Google App Engine 2.The sns service is using go to run as the back ending side 3.The sns service is using a crob job to request Api A 4.The Api A is adding another http request(request to Api B)…
1
vote
1 answer

How to remove permanent redirect in Next.js ? (Response 308)

So it seem like in next.config.js our previous devs coded some pernament redirects like so: { source: '/some-path', destination: 'https://storage.googleapis.com/company/some-path.html', permanent: true } Here's doc:…
1
vote
0 answers

OpenShift route to return a 308 Permanent Redirect

If I set an OpenShift route with insecureEdgeTerminationPolicy to Redirect. Client will be able to redirect http to https. They will receive a 302 Found (temporary redirection). Does route offer the the possibility to tune this behavior and returns…
1
vote
1 answer

Was HTTP status code 308 ("Permanent Redirect") introduced in HTTP 2?

I have found that Qt doesn't support status code 308. I was wondering why that is. I'm also aware that not all subtasks of the "Implement HTTP 2" Qt task are completed. So, if 308 was introduced in HTTP 2, I will beware that doing a custom…
Stefan Monov
  • 11,332
  • 10
  • 63
  • 120
0
votes
0 answers

Having trouble with GET paths in a webserver plugin with Airflow Flask

i have a webserver running in flask, and another application is making GET requests to it that i dont have access to. This is the get path and it works for some requests like /data/somefilename @bp.route("/data/",…
JRowan
  • 6,824
  • 8
  • 40
  • 59
0
votes
0 answers

Kubernetes (AKS) : nginx ingress error 308 Permanent Redirect error. Private nginx Ingress controller

Over all description of what I am doing: I am using a private nginx ingress controller in AKS (Azure Kubernetes Service) and setting up Secrets Store CSI Driver to enable NGINX Ingress Controller with TLS using this doc: Doc1 Following are the steps…
0
votes
2 answers

RestAPI C# and Python: Can't understand or solve status code 308

I'm trying to learn RestApis and have reached a problem I cannot find the answer to. In a Python script I run the RestService with the help of the Flask RestApi package. All endpoints are GET and I have tested and verified each endpoint with PostMan…
Mc_Topaz
  • 567
  • 1
  • 6
  • 21
0
votes
1 answer

Nginx Ingress Controller trailling slash with HTTPS redirect

Nginx Ingress Controller trailling slash with HTTPS redirect I'm trying to redirect requests from HTTP to HTTPS using an Ingress with Nginx Ingress Controller. My app is written in Django v3.0.7, my Nginx Controller is v0.46.0 and k8s v1.19.8. I…
0
votes
0 answers

Permanent redirection keeps hitting effective URL everytime

I have created two Rest API's in the backend (same webservice), one for the effective URL and other for the Redirected URL. I'm doing a 308 redirection here when user hits effective URL. Scenario's When I mark the API's as POST or PATCH or…
0
votes
0 answers

The GET Request is successful through PostMan but is giving a 308 Permanent Redirect through Spring RestTemplate Exchange Method Call

The GET Request contains a JSON Payload similar to below : { "customeId" : "A123", "Status" : "Assigned", "StartDate" : "2020-07-18", "EndDate" : "2020-07-20", "FetchLimit" : "10" } Am using multi-value map to add these inputs along with Headers…
1
2