They currently return a jsonrpc internal error. They should return an error that tells the requester that their request took too long.