mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 06:46:53 +00:00
Send an HTTP/440 response instead of an HTTP/502 if an upstream provider rejects a "send verification code" request
This commit is contained in:
1 parent
43fd8518c0
commit
5c31ef43c9
2 files changed
+4
-2
No files matched your search
+1
-1
@@ -1071,7 +1071,7 @@ class VerificationControllerTest {
|
||||
.request()
|
||||
.header(HttpHeaders.X_FORWARDED_FOR, "127.0.0.1");
|
||||
try (Response response = request.post(Entity.json(requestVerificationCodeJson("voice", "ios")))) {
|
||||
assertEquals(HttpStatus.SC_BAD_GATEWAY, response.getStatus());
|
||||
assertEquals(RegistrationServiceSenderExceptionMapper.REMOTE_SERVICE_REJECTED_REQUEST_STATUS, response.getStatus());
|
||||
|
||||
final Map<String, Object> responseMap = response.readEntity(Map.class);
|
||||
|
||||
|
||||
Reference in new issue
Block a user