Problem: Executing /DELETE on a template used by an active instance throws 500 error and raises a backtrace which is confusing for a message that is correct.
Solution: Propagating the message cleanly, by raising 409 as described in rfc2616 [1], and not producing a backtrace. [1] http://www.w3.org/Protocols/rfc2616/rfc2616.txt