fix: accept 409 from the MyEP contact form endpoint
This commit is contained in:
1 parent
6ff308015a
commit
599e3c7ee2
1 file changed
+3
-1
@@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user