Giter Site home page Giter Site logo

Comments (3)

tabjy avatar tabjy commented on May 12, 2024

IMHO, the status code should be 5xx server error indicating such feature is unavailable because it's disabled/non-existent.

I think either 501 Not Implemented or 503 Service Unavailable is more suitable than 404 Not Found. However, since 503 often suggests a service is only temporarily unavailable, I would prefer 501.

from cryostat.

andrewazores avatar andrewazores commented on May 12, 2024

Hmm. Docs I can find detailing 501 say it's typically used when the server doesn't understand the request method, which isn't quite what we need to convey. I also see things like "and is incapable of supporting it (the request method) for any resource", which is not true here.

503's temporary nature might be acceptable though. The deployment could be respun into a non-minimal state, or perhaps the client request happened to come in at a time when the admin had spun up the service but not yet finished manually linking up the components and setting the env vars. But, 503 is also potentially misleading, because this typically indicates that the entire service is unavailable. Here, we're simply stating that a specific capability is disabled, but the service itself is definitely available.

from cryostat.

tabjy avatar tabjy commented on May 12, 2024

Yah that makes sense.

Another option is to respond with a generic 500, as well as a message stating it's not yet set up in minimal mode.

from cryostat.

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.