What HTTP response code is returned when a DELETE Object request is made for a non-existent object?
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