Uploaded image for project: 'mod-orders'
  1. mod-orders
  2. MODORDERS-146

Return application/json (error schema) for all errors

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 3.0.0
    • None
    • ACQ Sprint 56, ACQ Sprint 57
    • 3
    • Thunderjet

    Description

      In at least one case (non-unique po-number), we return a text/plain response. In the interest of consistency, we should return application/json conforming to the error schema from the raml project, just as RMB does for 422s.

      We should also make sure we're specifying a useful value in the 'code' field, e.g. poNumberNotUnique. These codes will likely be mapped to error messages presented to the user in the UI.

      Acceptance Criteria:

      • All (or as many as possible) error conditions return an application/json response conforming to the error schema from the raml project
      • useful values are provided in the 'code' field

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                varunjavalkar Varun Javalkar
                cmcnally Craig McNally
                Craig McNally Craig McNally
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases