I send a POST request to the server. The request itself is syntactically correct and the REST server itself would have responded with a 200 OK. However there is some further processing occurring behind the REST server. Let's say it's a directory copy. The question is which HTTP status code should I return if the copy operation fails (not enough space, disk failure etc.)? The only idea I've come up with is 500, but this is not a good idea to respond with a 500 status code as far as I know.
--
You received this message because you are subscribed to the Google Groups "API Craft" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-craft+...@googlegroups.com.
Visit this group at http://groups.google.com/group/api-craft?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
I send a POST request to the server. The request itself is syntactically correct and the REST server itself would have responded with a 200 OK. However there is some further processing occurring behind the REST server. Let's say it's a directory copy. The question is which HTTP status code should I return if the copy operation fails (not enough space, disk failure etc.)? The only idea I've come up with is 500, but this is not a good idea to respond with a 500 status code as far as I know.
--
I've heard that before. I think it comes from website thinking rather than web api thinking. The anti-pattern to avoid is misusing the defined response codes.
Carlos