The :conflict?
function does not fire when I try to POST
to an "existing" resource. I used the wrap-trace
function to trace the request and it seems that after post-to-existing?
returns true it goes straight into the post
function. Skipping over the conflict?
and method-post?
steps. Am I doing something wrong?
I guess I could use the post-to-existing
function
but I dont like that it will end up returning status 200 or 300 unless I change it.
The logic should look like. 1. Allow posts on existing resource. 2. Check for business logic in the conflict. If conflicts occurs return with status code 409 otherwise allow the post.