Changed HTTP status returned when timeout occurs to 504.