This is pretty ugly, but I guess it's the best we can do without significant changes to way server errors work.