Traefik flow returning 307 error for Regex middleware

Getting the following error while accessing the Ingress flow. please find below my flow details. what wrong here and why it is returning 307 error response?
POST /service/v1/xxxx HTTP/1.1" 307 18 "-" "-" 80201 "dev-inbound-ingress-7b4485e2be46abbb01d0@kubernetescrd" "-" 0ms
flow:
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: dev-inbound-ingress
spec:
entryPoints:

  • http
    routes:
  • kind: Rule
    match: PathPrefix(/service/v1/) && Method(POST)
    middlewares:
    • name: post-regex-mw
      services:
    • name: service-dev
      port: 80
  • kind: Rule

Middleware:
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: post-regex-mw
spec:
redirectRegex:
regex: /service/(v1|v2)/(.*)
replacement: /web/simple/execute_${1}_${2}

Format your code with 3 backticks in front and after, or select the code and press </> . In yaml every space matters. And it makes it so much more readable for people trying to help you.