We are getting a Bad Request response from the ser...
# ktor
s
We are getting a Bad Request response from the server(400), but ktor is not throwing an exception for it, throws for others like 500, 404 etc.
c
ktor client or ktor server?
s
Ktor client for networking in multi platform, using kotlinx serializer
c
Are you sure that the server generates a response with status code 400? I'd suspect that it generates 200 OK with "bad response" text inside
s
I see 400, I am sure, it serves an html page, the response is 400 for sure.
Backend is Scala you play framework, serving a 400 bad request.
This is a post request, does it matter?
Nvm, figured out, I was using Any for return type, which became a delegated response, filed a bug on that,