5. REST Decisions

  • Status: accepted

  • Date: 2023-07-13

5.1. Context and Problem Statement

Use the HTTP Status Codes and Verbs correctly

5.2. Decision Drivers

  • Consistency

  • Correctness

5.3. Decision Outcome

  • Status Codes:

    • 200: To Get a resource or a list of resources

    • 202: To Create new objects with POST

    • 4XX: Return The Status Code of the Error Message, if an error occurs

  • Verbs:

    • GET: Get a resource or a list of resources

    • POST: Create/Run/Pause/Cancel a resource

    • PUT: Update a resource

    • DELETE: Delete a resource

  • Decision on Patch Verb

    • Not used due to similarity to update