Fork me on GitHub
Mario C.21:07:07

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?

Mario C.21:07:14

I guess I could use the post-to-existing function

Mario C.21:07:00

but I dont like that it will end up returning status 200 or 300 unless I change it.

Mario C.21:07:21

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.