Silent non-DELETEs?
Add an option to quietly handle REST API DELETE failures:
Discussed in https://github.com/phax/phoss-smp/discussions/392
Originally posted by mirvnillith October 20, 2025 We're using phoss-smp as a Peppol-facing copy of an internal Peppol ID tracking service (where we handle linking Peppol IDs to internal tenants over time). In order to try to keep that copy as correct as possible, and our sync as simple as possible, this is stateless (assuming/using no knowledge of what's in phoss-smp) so we often do DELETEs on non-existing entities (i.e. business cards). The current API implementation throws 404s at this, which we automatically log but ignore, but we wonder if there could be a setting for these to be 204s instead (to get rid of the unintentional logs)? The general argument for this is that the request wants the entity to not exist and does not care if it existed before or not. At the same time, I do acknowledge the value of knowing the thing you expected to exist did not and that's why I'm asking for a setting.