I'm using actix for a web application I'm working on, and I'm trying to set the status code 409 to a response, but I don't know how to do that. Something a bit like this:
HttpResponse::StatusCode(409).json(Status{
value: val,
isOn: true
})