Skip to main content
NetApp Knowledge Base

What HTTP response code is returned when a DELETE Object request is made for a non-existent object?

Views:
Visibility:
Public
Votes:
0
Category:
storagegrid
Specialty:
sgrid
Last Updated:

Applies to

  • StorageGRID
  • Amazon Web Services (AWS) Simple Storage Service (S3)

Answer

  • When a DELETE Object request is made for a non-existent object, the HTTP response code returned is a 200-series status code, typically 204 No Content.
  • This behavior differs from the HEAD or GET requests, which return a 404 Not Found status code when the object does not exist.
  • This behavior is consistent with the AWS S3 API documentation, which specifies that a DELETE request for a non-existent object will still return a success status code.

Additional Information

additionalInformation_text
NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.