Skip to content

Instantly share code, notes, and snippets.

@weltonrodrigo
Last active January 10, 2024 15:13
Show Gist options
  • Save weltonrodrigo/be8cd941d8825ddcb5031e4017ecb399 to your computer and use it in GitHub Desktop.
Save weltonrodrigo/be8cd941d8825ddcb5031e4017ecb399 to your computer and use it in GitHub Desktop.
HTTP 470 azure

What is an error with status HTTP 470 on Azure?

This is probably Azure Firewall.

Check the body of the response, it has some debug information:

< HTTP/1.1 470 status code 470
< Date: Sun, 27 Feb 2022 04:29:17 GMT
< Content-Length: 70
< Content-Type: text/plain; charset=utf-8
Action: Deny. Reason: No rule matched. Proceeding with default action.*

Some Azure services also show the origin IP information as a header. This may help debugging private connectivity issues.

If the error is coming from a workload running inside kubernetes, it's possible to test it with

kb run curler-0 --image curlimages/curl --rm -ti --restart=Never --command -- curl -v http://myurl.com"

http://myurl.com being the url you want to check. It should present a HTTP session with the destination URL.

@Dixon3
Copy link

Dixon3 commented Jan 10, 2024

Hello, let me know - did you find a root cause of the issue?

@weltonrodrigo
Copy link
Author

@Dixon3 If you are getting HTTP 470 when doing an HTTP request from inside an Azure resource (VM, kubernetes etc) your Azure Firewall is blocking the request. Check your firewall rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment