From b47858b9815caf1e740bcbdadeafdb1e534820b7 Mon Sep 17 00:00:00 2001 From: Mathieu Velten Date: Fri, 20 Mar 2026 17:32:14 +0100 Subject: [PATCH] Add 413 error to /sendToDevice --- data/api/client-server/to_device.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/data/api/client-server/to_device.yaml b/data/api/client-server/to_device.yaml index cea23ab7..98c0b3f3 100644 --- a/data/api/client-server/to_device.yaml +++ b/data/api/client-server/to_device.yaml @@ -82,6 +82,18 @@ paths: examples: response: value: {} + "413": + description: At least one device message is too large to fit in a single EDU. + content: + application/json: + schema: + $ref: definitions/errors/error.yaml + examples: + response: + value: { + "errcode": "M_TOO_LARGE", + "error": "device message to @test:example.com too large to fit in a single EDU" + } tags: - Send-to-Device messaging servers: