Fix typo

Nothing happened because of this typo, the connection just hung. Now it returns a 500 error as expected.