409 with just a simple text body is used in a number of similat cases in OctoPrint. On other example is if you try to upload a gcode file with the same filename as the currently printing job, or trying to upload to sd when no sd card is inserted into the printer.
The request could not be completed due to a conflict with the current state of the target resource. This code is used in situations where the user might be able to resolve the conflict and resubmit the request.
You cannot query the status of a printer if no printer is connected. You can change this though by connecting to a printer. Even a 404 would have been practical here.
Thank you. Yes i catch now the 409 Error and change it to me "custom" Text.
You cannot query the status of a printer if no printer is connected.
Not if i query the printer directly, yes. But the request is send to the host and "disconnected" is also a state. I can not say that 409 is wrong. But if the response is "disconnected" or "offline" .. is more correct in my personal opinion. Anyway. It works now. Thank you