NEXUS-5790: Proper response codes for DELETE and PUT