fix: accept 409 from the MyEP contact form endpoint

This commit is contained in:
2026-09-22 08:29:58 +02:00
parent 6ff308015a
commit 599e3c7ee2
@@ -100,7 +100,9 @@ class ApiClient implements LoggerAwareInterface
'json' => $addressData, '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');
} }
/** /**