Coder Social home page Coder Social logo

Comments (1)

jarrodek avatar jarrodek commented on August 20, 2024

Hi,
You are almost right. Wikipedia might say that but spec says something different. It says that even though the client may not understand specific status code (like 419) but it must understand the class of the status code.

HTTP status codes are extensible. HTTP applications are not required
to understand the meaning of all registered status codes, though such
understanding is obviously desirable.

But next sentence is:

However, applications MUST
understand the class of any status code, as indicated by the first
digit, and treat any unrecognized response as being equivalent to the
x00 status code of that class [...]

Specification describes only 5 different classes of status code: 1xx - 5xx.

Web clients implemented in JavaScript disallow creating a Response object with the status code < 100 or > 599. When you try it throws an error. Therefore web client for such API wouldn't be possible.

I don't think that ARC should support something that is not allowed by the spec. I mean it easily can but it could lead other developers into a trap when the app allows a behavior that in real world would result with huge issue.

I'm closing it as won't fix but feel free to discuss the issue.

from arc-electron.

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.