Tests and HTTP 404 for PR 174

Updates PR #174 with `log_halt 404` if the record to remove is not found, and a test as suggested. @pccowboy if you want to merge-and-squash these into your PR #174 that would be great (I'll ping you directly on Monday!)