Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-4090

Delete SKU via headless API does not return proper HTTP error code if SKU does not exist

    Details

      Description

      com.liferay.headless.commerce.admin.catalog.internal.resource.v1_0.SkuResourceImpl#deleteSku
      returns
      InboundJaxrsResponse{context=ClientResponse{method=DELETE, uri=http://localhost:8080/o/headless-commerce-admin-catalog/v1.0/skus/410045, status=204, reason=No Content}}
      if id=410045 misses

      One would expect 404 at least.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alessandro.iovane Alessandro Iovane
                Reporter:
                igor.beslic Igor Beslic
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  2.1.2