Error during creating history or failure in graph concistency
checks are signs of either bugs or system configuration issue. This
makes sure that gRPC error code in the API error based on these
cases has correct value to signify it.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>