Giter VIP home page Giter VIP logo

Comments (5)

zzzi2p avatar zzzi2p commented on June 14, 2024 1

changed to 502

from i2pd.

zzzi2p avatar zzzi2p commented on June 14, 2024

We use 500 Domain Not Found if the hostname is not in the addressbook and 504 Gateway TImeout if the host is apparently down (no LS or no response). Here's our error pages for reference: https://github.com/i2p/i2p.i2p/tree/master/apps/i2ptunnel/resources/proxy

from i2pd.

Vort avatar Vort commented on June 14, 2024

It means that Java I2P requires fixing as well.

Simply speaking, 500 error should appear only when something unexpected happened.
When condition leading to error is known to developer, some other code is needed.

The HyperText Transfer Protocol (HTTP) 500 Internal Server Error server error response code indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.
This error response is a generic "catch-all" response. Usually, this indicates the server cannot find a better 5xx error code to response.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500

from i2pd.

zzzi2p avatar zzzi2p commented on June 14, 2024

We have 20+ error pages and we only use 500 for the one case I mentioned - hostname not in address book. You have a suggestion for what would be better for that?

from i2pd.

Vort avatar Vort commented on June 14, 2024

we only use 500 for the one case I mentioned - hostname not in address book. You have a suggestion for what would be better for that?

This is what I found:

Most I have seen return 502 Bad Gateway or 504 Gateway Timeout.

https://stackoverflow.com/questions/24395931/what-to-return-to-browser-if-dns-lookup-failed#comment37735176_24395931

unfortunately from time to time we get 504 error DNS lookup failed

https://community.cloudflare.com/t/cant-resolve-nationalbank-kz-name-proxy-504-dns-lookup-failed/54835

from i2pd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.