changed error code to 409 when trying to create existing object