Status Code 504

Does anyone know what Status code 504 is?

It’s an error code being returned by the SmartThings API.

An HTTP 504 error code typically means that the server didn’t get a response in time when trying to process the request. It’s also called a “Gateway Timeout” error code.

It’s hard to say what that means in the context of SmartThings as I don’t think they’ve officially documented it… could mean that they have a primary set of servers that field the initial API request and those servers failed to talk to the actual servers that should process the request. Or it could mean that their API servers processed the request but then failed to get a response from your hub.

Thanks Josh- Those 2 devices are on Hubitat (C8-Pro) not SmartThings. Do all the API’s use the same “504”?

Yes, HTTP 504 is a standard code:

It likely means that the Hubitat cloud API is/was having trouble talking to your hub. If it happens consistently with all commands to the hub even from dashboards, then the first thing I would try is rebooting the hub as that usually solves the most common connectivity issues.

Otherwise if it happens consistently and a reboot doesn’t help it, I would try to think of any other recent changes that might have happened on the hub and see if you can walk those back (eg. hub software, apps/drivers, etc).

1 Like