Handle errors more gracefully
If I get server errors when trying to get device info rather then crashing the server (not nice) I just return an error to the status function.
Also in the case your credentials are bad, I give a better error message then what I did before (Parse error) which was not too helpful. Of course if you were in debug mode and had the debug sensitive flag on the root error would have shown. This however is a little nicer for simple password issues.