Is it necessary at all? Where might it be thrown? If it's not applicable I'd just delete the "Application already registered" error and alter the 404 message to something like "Undefined application or entity" - locations aren't part of this API, right?