https://kotlinlang.org logo
Title
b

bsimmons

01/05/2022, 10:48 PM
Hey all, I'm wondering if there is a drop a connection call for a malformed request on ktor server? Like complete drop, I don't even want to send a 404 response back. Is this possible?
j

Joost Klitsie

01/06/2022, 7:02 AM
I think there is a call.finish() or something, you can try to call that and see what happens
b

bsimmons

01/06/2022, 1:56 PM
Tried that already before, but I then we just get a 404. I guess that is the default if there are no
call.respond*()
methods in the pipeline?
a

Aleksei Tirman [JB]

01/13/2022, 2:28 PM
Yes, 404 is the fallback response status.
b

bsimmons

01/13/2022, 2:54 PM
So is there no way around that then? The only bad way I avoided the 404 was with a long delay or infinite loop.
a

Aleksei Tirman [JB]

01/14/2022, 6:57 AM
Could you please describe what root problem are you trying to solve?