Skip to content

Commit 39f2455

Browse files
authored
Update NOT_FOUND error to BAD_ALIAS error to be spec compliant. (#837)
1 parent aaac4f5 commit 39f2455

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/30rooms/05aliases.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
alias => $room_alias,
145145
alt_aliases => [ $bad_alias ],
146146
}
147-
)->main::expect_matrix_error( 404, "M_NOT_FOUND" )
147+
)->main::expect_matrix_error( 400, "M_BAD_ALIAS" )
148148
->SyTest::pass_on_done( "m.room.canonical_alias rejects missing aliases" );
149149
})->then( sub {
150150
# Create an invalid alias name (starts with % instead of #).

0 commit comments

Comments
 (0)