Currently, the 504 Gateway Timeout error on the Statements/Transactions Pages shows a generic error message (the CSS alignment is already fixed in a future version).

The 504 Gateway Timeout error is a common enough error mode that we should show a specific error message for it. This would help us more easily distinguish the root cause of errors.
Jira issue: CRDB-14471