From 97b7781c13944344c93c5deca99f918709d25bf1 Mon Sep 17 00:00:00 2001 From: Ian Dees Date: Mon, 9 Nov 2015 20:09:08 -0500 Subject: [PATCH] Include XML response template --- moto/sqs/responses.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/moto/sqs/responses.py b/moto/sqs/responses.py index 82d24cb6..d1ba5b6d 100644 --- a/moto/sqs/responses.py +++ b/moto/sqs/responses.py @@ -108,7 +108,7 @@ class SQSResponse(BaseResponse): delay_seconds = self.querystring.get('DelaySeconds') if len(message) > MAXIMUM_MESSAGE_LENGTH: - return "One or more parameters are invalid. Reason: Message must be shorter than 262144 bytes.", dict(status=400) + return ERROR_TOO_LONG_RESPONSE, dict(status=400) if delay_seconds: delay_seconds = int(delay_seconds[0]) @@ -421,3 +421,13 @@ PURGE_QUEUE_RESPONSE = """ """ + +ERROR_TOO_LONG_RESPONSE = """ + + Sender + InvalidParameterValue + One or more parameters are invalid. Reason: Message must be shorter than 262144 bytes. + + + 6fde8d1e-52cd-4581-8cd9-c512f4c64223 +"""