{"id":"6265bb2ae6fd2cf4","repo":"gofiber/fiber","slug":"client-https-to-http-redirect-blocked","errorCode":null,"errorMessage":"client: HTTPS to HTTP redirect blocked","messagePattern":"client: HTTPS to HTTP redirect blocked","errorType":"http","errorClass":"ErrRedirectDowngrade","httpStatus":null,"severity":"error","filePath":"client/errors.go","lineNumber":19,"sourceCode":"package client\n\nimport (\n\t\"errors\"\n)\n\nvar (\n\terrResponseChanTypeAssertion = errors.New(\"failed to type-assert to *Response\")\n\terrChanErrorTypeAssertion    = errors.New(\"failed to type-assert to chan error\")\n\terrRequestTypeAssertion      = errors.New(\"failed to type-assert to *Request\")\n\terrFileTypeAssertion         = errors.New(\"failed to type-assert to *File\")\n\terrCookieJarTypeAssertion    = errors.New(\"failed to type-assert to *CookieJar\")\n\terrSyncPoolBuffer            = errors.New(\"failed to retrieve buffer from a sync.Pool\")\n\n\t// ErrRedirectDowngrade is returned when DoRedirects encounters a\n\t// redirect from an HTTPS origin to a plaintext HTTP target.\n\t// Following such a redirect would leak any credentials, cookies, or\n\t// session tokens that the original HTTPS handshake protected.\n\tErrRedirectDowngrade = errors.New(\"client: HTTPS to HTTP redirect blocked\")\n)\n","sourceCodeStart":1,"sourceCodeEnd":21,"githubUrl":"https://github.com/gofiber/fiber/blob/9a4c7e57fe0b080a04235d28a4b0d2b4b353d58c/client/errors.go#L1-L21","documentation":"Error \"client: HTTPS to HTTP redirect blocked\" thrown in gofiber/fiber.","triggerScenarios":"Thrown at client/errors.go:19 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"9a4c7e57fe0b080a04235d28a4b0d2b4b353d58c","analyzedAt":"2026-08-04T21:44:03.395Z","schemaVersion":2}