make not_found also trigger on NotFound exception directly, fixes #500