I am building a RESTful API to control some hardware. Part of the API is getting information from a serial (RS-232) interface. Some of the time, this can fail for whatever reason (disconnect, device broken, etc).
What HTTP error code should I use? I was thinking in the 5xx range, as the request is correct, but I cannot find a suitable one.