HTTPCode takes an error and returns the HTTP status code for the given error
If a match is found then the second return argument will be true, otherwise it will be false.
nolint: gocyclo
ToGRPC takes the passed in error and converts it to a GRPC status error
If the passed in error is already a gprc status error, then it is returned unmodified
If the passed in error is nil, then a nil error is returned.
nolint: gocyclo