logic part of POST modified, different response HTTP status for duplication check