Giter Site home page Giter Site logo

Comments (3)

pcarana avatar pcarana commented on June 11, 2024

Probably the best solution will be to place a default case for the switch statement.

The default case in the switch statement was added on commit 33d1552, so if there are any other codes to add they can be added at this statement; for now this will return a default message.

Beside this, I would like to suggest another thing. The codes are harcoded, wouldn't be better to declare them as constants or use something that already exists (eg. javax.servlet.http.HttpServletResponse.SC_*)?

Most of the codes expected by the servlet are declared as constants in the mentioned class (javax.servlet.http.HttpServletResponse), but the code 422 isn't, so that's why the codes stayed the same (as Strings).

from rdap-server.

TheRedTrainer avatar TheRedTrainer commented on June 11, 2024

Verified. If a non listed error code is returned by a client request, the following structure is displayed in the answer:
{"rdapConformance":["rdap_level_0"],"errorCode":"501","description":"This server does not implement ip requests."}

from rdap-server.

pcarana avatar pcarana commented on June 11, 2024

Closing, fixed in Red Dog v1.2

from rdap-server.

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.