From 599e3c7ee2a3fd01ef40c0a2ec6e085f6a8518f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Tue, 22 Sep 2026 08:28:40 +0200 Subject: [PATCH] fix: accept 409 from the MyEP contact form endpoint --- public/typo3conf/ext/ep_products/Classes/MyEP/ApiClient.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/typo3conf/ext/ep_products/Classes/MyEP/ApiClient.php b/public/typo3conf/ext/ep_products/Classes/MyEP/ApiClient.php index b07f476c..6dea91e0 100644 --- a/public/typo3conf/ext/ep_products/Classes/MyEP/ApiClient.php +++ b/public/typo3conf/ext/ep_products/Classes/MyEP/ApiClient.php @@ -100,7 +100,9 @@ class ApiClient implements LoggerAwareInterface 'json' => $addressData, ]); - $this->assertStatusCode($response, [Response::HTTP_OK, Response::HTTP_CREATED, Response::HTTP_ACCEPTED, Response::HTTP_NO_CONTENT], 'POST', 'contactform'); + // A conflict means the address is already registered, which is the normal answer to a + // resubmitted contact form and not worth reporting. + $this->assertStatusCode($response, [Response::HTTP_OK, Response::HTTP_CREATED, Response::HTTP_ACCEPTED, Response::HTTP_NO_CONTENT, Response::HTTP_CONFLICT], 'POST', 'contactform'); } /**