register_push_device: Add an error code to push-not-configured error.

This commit adds an error code to make it easier for clients
to identify when push device registration is rejected due to
server not being configured to use push notification service.

Fixes part of 35368.
This commit is contained in:
Prakhar Pratyush
2025-07-22 13:16:59 +05:30
committed by Tim Abbott
parent a4d70505ec
commit 1c7dd83dbe
3 changed files with 16 additions and 2 deletions

View File

@@ -12619,7 +12619,7 @@ paths:
{
"result": "error",
"msg": "Server is not configured to use push notification service.",
"code": "BAD_REQUEST",
"code": "PUSH_SERVICE_NOT_CONFIGURED",
}
description: |
Error when the server is not configured to use push notification service: