GithubHelp home page GithubHelp logo

Comments (2)

david-waltermire avatar david-waltermire commented on July 23, 2024

Note: A start of this exists in the OpenAPI defintion in PR #17. Specific error codes have been identified that address some failure modes. These definitions should be updated based on the result of this discussion.

from cve-services.

david-waltermire avatar david-waltermire commented on July 23, 2024

This is a generalized summary of the error codes used in PR #17.

Error Code Post Put Get Description
200 X X X Success on POST/PUT/GET
400 X X Malformed/invalid request
401 X X X The action requires authorization and the client is not authenticated
403 X X X The action requires authorization and the client is not authorized to perform this action
404 X X X The resource was not found or does not exist

A 404 has different meaning depending on the action. For example:

  • Posting a CVE record to an unreserved CVE would result in a 404.
  • Updating a CVE record using a PUT that was never initial submitted using a POST would result in a 404
  • Retrieving a CVE record using a GET that was never initial submitted using a POST would result in a 404

A 404 is different than the user not having access, a 403. A 403 will result from an attempt to POST or PUT a CVE record that the organization has not been allocated a CVE ID for, or a PUT to an ADP container for which they do not have access.

Thoughts?

from cve-services.

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.